Skip to content

Commit

Permalink
It's not a warning even in tests? Fuck off
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Feb 21, 2024
1 parent 650bf96 commit 459c42f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/crates/soroban-rpc/src/txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,7 @@ mod tests {
match assemble(&txn, &response) {
Ok(asstxn) => {
let expected = (resource_fee + 100) * 115 / 100;
assert!(u32::try_from(expected).is_ok());
assert_eq!(asstxn.fee, expected as u32);
assert_eq!(asstxn.fee, u32::try_from(expected).unwrap());
}
r => panic!("expected success, got: {r:#?}"),
}
Expand Down

0 comments on commit 459c42f

Please sign in to comment.