Fixed most recent nightly clippy warnings (#817)

* Fixed most recent nightly clippy warnings

* Missing wasm32 changes
This commit is contained in:
Jędrzej Stuczyński
2021-10-15 08:57:16 +01:00
committed by GitHub
parent 673e13ec57
commit 0f7280c227
9 changed files with 46 additions and 76 deletions
+4 -3
View File
@@ -263,9 +263,10 @@ fn override_config(mut config: Config, matches: &ArgMatches) -> Config {
{
let monitor_threshold =
monitor_threshold.expect("Provided monitor threshold is not a number!");
if monitor_threshold > 100 {
panic!("Provided monitor threshold is greater than 100!");
}
assert!(
!(monitor_threshold > 100),
"Provided monitor threshold is greater than 100!"
);
config = config.with_minimum_epoch_monitor_threshold(monitor_threshold)
}