Skip to content

Commit a71dc3b

Browse files
Fix clippy error
1 parent 33db09a commit a71dc3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: fplus-lib/src/helpers.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ pub fn compare_allowance_and_allocation(
3737

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

4442
// Replace 'b' with 'B'
4543
amount.replace('b', "B")

0 commit comments

Comments
 (0)