chore: clippy

This commit is contained in:
DaniPopes 2022-12-30 09:28:56 +01:00
parent c87226f520
commit bd220f308d
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
2 changed files with 3 additions and 3 deletions

View File

@ -1089,11 +1089,11 @@ mod tests {
let result: Result<SourceUnit, _> = serde_path_to_error::deserialize(deserializer);
match result {
Err(e) => {
println!("... {} fail: {e}", path_str);
println!("... {path_str} fail: {e}");
panic!();
}
Ok(_) => {
println!("... {} ok", path_str);
println!("... {path_str} ok");
}
}
})

View File

@ -92,7 +92,7 @@ where
};
println!("Original transaction gas: {curr_gas:?} wei");
let units: U256 = U256::exp10(CONTINGENCY_UNITS.into());
let units: U256 = U256::exp10(CONTINGENCY_UNITS);
let raised_gas: U256 = (curr_gas * self.contingency) / units;
tx.set_gas(raised_gas);
println!("Raised transaction gas: {raised_gas:?} wei");