Skip to content

Commit

Permalink
feat(account): remove the parenthesis to improve the accuracy.
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Apr 28, 2024
1 parent 9f9dd1f commit df076d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl Account {
let maximum = (self.daily - self.day)
.min(self.weekly - self.week)
.min(self.end);
let mut mileage = maximum * (percent / 100.);
let mut mileage = maximum * percent / 100.;

if mileage < self.start {
return Err(format!(
Expand Down

0 comments on commit df076d7

Please sign in to comment.