From 71aa59126ec4e2f1037e513fa087eef132cd0362 Mon Sep 17 00:00:00 2001 From: Karol Sewilo Date: Fri, 18 Oct 2024 12:55:46 +0200 Subject: [PATCH] Make clippy happy --- crates/sncast/tests/integration/fee.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/sncast/tests/integration/fee.rs b/crates/sncast/tests/integration/fee.rs index 4e1871db57..8e94db6825 100644 --- a/crates/sncast/tests/integration/fee.rs +++ b/crates/sncast/tests/integration/fee.rs @@ -170,7 +170,7 @@ async fn test_strk_fee_get_max_fee() { max_gas_unit_price, } => { assert_eq!( - (max_gas.unwrap() as u128) * max_gas_unit_price.unwrap(), + u128::from(max_gas.unwrap()) * max_gas_unit_price.unwrap(), MAX_FEE.into() ); } @@ -198,7 +198,7 @@ async fn test_strk_fee_get_max_fee_with_max_gas() { settings, FeeSettings::Strk { max_gas: Some(1_000_000), - max_gas_unit_price: Some((MAX_FEE / 1_000_000) as u128), + max_gas_unit_price: Some(u128::from(MAX_FEE / 1_000_000)), } ); @@ -208,7 +208,7 @@ async fn test_strk_fee_get_max_fee_with_max_gas() { max_gas_unit_price, } => { assert_eq!( - max_gas.unwrap() as u128 * max_gas_unit_price.unwrap(), + u128::from(max_gas.unwrap()) * max_gas_unit_price.unwrap(), MAX_FEE.into() ); } @@ -271,7 +271,7 @@ async fn test_strk_fee_get_max_fee_with_max_gas_unit_price() { max_gas_unit_price, } => { assert_eq!( - max_gas.unwrap() as u128 * max_gas_unit_price.unwrap(), + u128::from(max_gas.unwrap()) * max_gas_unit_price.unwrap(), MAX_FEE.into() ); }