Skip to content

Commit 813e57d

Browse files
committed
fix cargo clippy complaint (redundant_clone)
1 parent 39e3c57 commit 813e57d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/uu/printf/src/tokenize/num_format/formatters

src/uu/printf/src/tokenize/num_format/formatters/decf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Formatter for Decf {
5555
Some(*field.field_char == 'G'),
5656
);
5757
// strip trailing zeroes
58-
if let Some(ref post_dec) = f_sci.post_decimal.clone() {
58+
if let Some(ref post_dec) = f_sci.post_decimal {
5959
let mut i = post_dec.len();
6060
{
6161
let mut it = post_dec.chars();

0 commit comments

Comments
 (0)