Skip to content

Commit 0a01fbc

Browse files
authored
[examples] fix minor clippy warnings (use-ink#389)
1 parent c62e1f4 commit 0a01fbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/erc20/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ mod erc20 {
119119
if from_balance < value {
120120
return false
121121
}
122-
self.balances.insert(from.clone(), from_balance - value);
122+
self.balances.insert(from, from_balance - value);
123123
let to_balance = self.balance_of_or_zero(&to);
124-
self.balances.insert(to.clone(), to_balance + value);
124+
self.balances.insert(to, to_balance + value);
125125
self.env().emit_event(Transfer {
126126
from: Some(from),
127127
to: Some(to),

0 commit comments

Comments
 (0)