mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Prepare for latest clippy (nightly 09-10-2022) (#12466)
This commit is contained in:
@@ -268,9 +268,8 @@ impl PalletCmd {
|
||||
|
||||
for s in 0..self.steps {
|
||||
// This is the value we will be testing for component `name`
|
||||
let component_value = ((lowest as f32 + step_size * s as f32) as u32)
|
||||
.min(highest)
|
||||
.max(lowest);
|
||||
let component_value =
|
||||
((lowest as f32 + step_size * s as f32) as u32).clamp(lowest, highest);
|
||||
|
||||
// Select the max value for all the other components.
|
||||
let c: Vec<(BenchmarkParameter, u32)> = components
|
||||
|
||||
Reference in New Issue
Block a user