Skip to content

Commit

Permalink
removed intoiter
Browse files Browse the repository at this point in the history
  • Loading branch information
toastxc committed Jul 29, 2024
1 parent 23ff4bc commit 04e96b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ pub fn format_size(i: usize) -> String {

let dec: String = value.chars().rev().take(dec_l as usize).collect();

let mut dec_x: String = dec.chars().into_iter().rev().take(decimal_points).collect();
let mut dec_x: String = dec.chars().rev().take(decimal_points).collect();
dec_x = dec_x.trim_end_matches('0').to_string();

let whole_l = value.len() - dec_l;
Expand Down

0 comments on commit 04e96b3

Please sign in to comment.