Skip to content

Commit

Permalink
fix cargo clippy complaint (redundant_clone)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jun 15, 2020
1 parent 39e3c57 commit 813e57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/printf/src/tokenize/num_format/formatters/decf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Formatter for Decf {
Some(*field.field_char == 'G'),
);
// 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 it = post_dec.chars();
Expand Down

0 comments on commit 813e57d

Please sign in to comment.