diff --git a/ethers-solc/src/artifacts/ast/mod.rs b/ethers-solc/src/artifacts/ast/mod.rs index 82e01a2b..be83cd00 100644 --- a/ethers-solc/src/artifacts/ast/mod.rs +++ b/ethers-solc/src/artifacts/ast/mod.rs @@ -1089,11 +1089,11 @@ mod tests { let result: Result = 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"); } } }) diff --git a/examples/middleware/examples/create_custom_middleware.rs b/examples/middleware/examples/create_custom_middleware.rs index 7e19ee3a..56a4a21d 100644 --- a/examples/middleware/examples/create_custom_middleware.rs +++ b/examples/middleware/examples/create_custom_middleware.rs @@ -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");