From ca157c31c592197cfaed82d39785480a446c6cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=BBuk?= Date: Thu, 12 Sep 2024 11:56:17 +0200 Subject: [PATCH] Fix clippy error --- fplus-lib/src/helpers.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fplus-lib/src/helpers.rs b/fplus-lib/src/helpers.rs index 4d856c0..3641d12 100644 --- a/fplus-lib/src/helpers.rs +++ b/fplus-lib/src/helpers.rs @@ -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")