Unverified Commit 0a01fbcb authored by Hero Bird's avatar Hero Bird Committed by GitHub

[examples] fix minor clippy warnings (#389)

parent c62e1f4c
Pipeline #90872 canceled with stages
in 58 seconds
...@@ -119,9 +119,9 @@ mod erc20 { ...@@ -119,9 +119,9 @@ mod erc20 {
if from_balance < value { if from_balance < value {
return false return false
} }
self.balances.insert(from.clone(), from_balance - value); self.balances.insert(from, from_balance - value);
let to_balance = self.balance_of_or_zero(&to); let to_balance = self.balance_of_or_zero(&to);
self.balances.insert(to.clone(), to_balance + value); self.balances.insert(to, to_balance + value);
self.env().emit_event(Transfer { self.env().emit_event(Transfer {
from: Some(from), from: Some(from),
to: Some(to), to: Some(to),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment