Skip to content

Commit

Permalink
Run cargo-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Mar 14, 2024
1 parent a55b319 commit aa49d6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl UnusedReturnEnum {
pub fn get_percentage_difference(balance1: u128, balance2: u128) -> Result<u128, Error> {
let absolute_difference = balance1.abs_diff(balance2);
let sum = balance1 + balance2;

match 100u128.checked_mul(absolute_difference / sum) {
Some(result) => Ok(result),
None => Err(Error::Overflow),
Expand Down

0 comments on commit aa49d6f

Please sign in to comment.