Skip to content

Commit

Permalink
Make clippy happy (#2591)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #

## Introduced changes

<!-- A brief description of the changes -->

- fixes clippy warnigs

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [x] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
  • Loading branch information
ksew1 authored Oct 18, 2024
1 parent bc60846 commit 8df49f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/sncast/tests/integration/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down Expand Up @@ -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)),
}
);

Expand All @@ -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()
);
}
Expand Down Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 8df49f6

Please sign in to comment.