Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Sep 12, 2024
1 parent 7ff1a1d commit ca157c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fplus-lib/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ pub fn compare_allowance_and_allocation(

pub fn process_amount(mut amount: String) -> String {
// Trim 'S' or 's' from the end of the string
amount = amount
.trim_end_matches(|c: char| c == 'S' || c == 's')
.to_string();
amount = amount.trim_end_matches(['s', 'S']).to_string();

// Replace 'b' with 'B'
amount.replace('b', "B")
Expand Down

0 comments on commit ca157c3

Please sign in to comment.