Skip to content

Commit

Permalink
Correct remediated example for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nachogutman authored May 6, 2024
1 parent 931b614 commit 566eca5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl IncorrectExponentiation {
.get::<DataKey, u128>(&DataKey::Data)
.expect("Data not found");

return data.pow(3);
data.pow(3)
}

}
Expand All @@ -49,7 +49,7 @@ mod tests {
let contract_id = env.register_contract(None, IncorrectExponentiation);
let client = IncorrectExponentiationClient::new(&env, &contract_id);
env.mock_all_auths();
let user = <Address as testutils::Address>::generate(&env);
let _user = <Address as testutils::Address>::generate(&env);


client.init();
Expand Down

0 comments on commit 566eca5

Please sign in to comment.