mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 12:45:40 +00:00
Fix clippy warnings (#7625)
* Fix clippy check Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Autofix clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix trivial Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * suppress warnings Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Quiet clippy 😌 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
a0f83eb992
commit
d501d92176
@@ -793,7 +793,7 @@ mod tests {
|
||||
if leases.contains_key(&(para, period)) {
|
||||
return Err(LeaseError::AlreadyLeased)
|
||||
}
|
||||
leases.insert((para, period), LeaseData { leaser: leaser.clone(), amount });
|
||||
leases.insert((para, period), LeaseData { leaser: *leaser, amount });
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
@@ -1391,7 +1391,7 @@ mod tests {
|
||||
(1, 2.into(), 53, SlotRange::TwoTwo),
|
||||
(5, 3.into(), 1, SlotRange::ThreeThree),
|
||||
];
|
||||
assert_eq!(Auctions::calculate_winners(winning.clone()), winners);
|
||||
assert_eq!(Auctions::calculate_winners(winning), winners);
|
||||
|
||||
winning[SlotRange::ZeroOne as u8 as usize] = Some((4, 10.into(), 3));
|
||||
let winners = vec![
|
||||
@@ -1399,11 +1399,11 @@ mod tests {
|
||||
(1, 2.into(), 53, SlotRange::TwoTwo),
|
||||
(5, 3.into(), 1, SlotRange::ThreeThree),
|
||||
];
|
||||
assert_eq!(Auctions::calculate_winners(winning.clone()), winners);
|
||||
assert_eq!(Auctions::calculate_winners(winning), winners);
|
||||
|
||||
winning[SlotRange::ZeroThree as u8 as usize] = Some((1, 100.into(), 100));
|
||||
let winners = vec![(1, 100.into(), 100, SlotRange::ZeroThree)];
|
||||
assert_eq!(Auctions::calculate_winners(winning.clone()), winners);
|
||||
assert_eq!(Auctions::calculate_winners(winning), winners);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user