Skip to content

Commit b6d80d1

Browse files
committed
fix clippy
1 parent 052311a commit b6d80d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

orange-sdk/src/trusted_wallet/dummy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ impl TrustedWalletInterface for DummyTrustedWallet {
364364
// bad assumptions properly. So we mangle the payment id a bit here to avoid collisions.
365365
fn mangle_payment_id(id: [u8; 32]) -> [u8; 32] {
366366
let mut mangled = id;
367-
for i in 0..32 {
368-
mangled[i] = mangled[i].wrapping_add(0x42);
367+
for i in &mut mangled {
368+
*i = i.wrapping_add(0x42);
369369
}
370370
mangled
371371
}

0 commit comments

Comments
 (0)