1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

fix cargo clippy complaint (redundant_clone)

This commit is contained in:
Roy Ivy III 2020-06-14 13:57:25 -05:00
parent 39e3c57198
commit 813e57d225

View file

@ -55,7 +55,7 @@ impl Formatter for Decf {
Some(*field.field_char == 'G'), Some(*field.field_char == 'G'),
); );
// strip trailing zeroes // strip trailing zeroes
if let Some(ref post_dec) = f_sci.post_decimal.clone() { if let Some(ref post_dec) = f_sci.post_decimal {
let mut i = post_dec.len(); let mut i = post_dec.len();
{ {
let mut it = post_dec.chars(); let mut it = post_dec.chars();