[librsvg: 3/4] Remove superfluous clones




commit e57f4bac63111a84d492c69c7c772a5801a68584
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 8 09:43:23 2020 -0600

    Remove superfluous clones

 src/length.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/length.rs b/src/length.rs
index c2fe9a19..9e68f762 100644
--- a/src/length.rs
+++ b/src/length.rs
@@ -262,11 +262,11 @@ impl<N: Normalize> Parse for Length<N> {
                     "pt" => LengthUnit::Pt,
                     "pc" => LengthUnit::Pc,
 
-                    _ => return Err(parser.new_unexpected_token_error(token.clone())),
+                    _ => return Err(parser.new_unexpected_token_error(token)),
                 };
             }
 
-            _ => return Err(parser.new_unexpected_token_error(token.clone())),
+            _ => return Err(parser.new_unexpected_token_error(token)),
         }
 
         let l_value = f64::from(finite_f32(l_value).map_err(|e| parser.new_custom_error(e))?);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]