[librsvg] cargo-clippy: parse_dash_array() - remove redundant conversion



commit 1df910a5935693895e8f75899f16c2bb28ed4143
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Feb 22 13:33:08 2018 -0600

    cargo-clippy: parse_dash_array() - remove redundant conversion

 rust/src/length.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rust/src/length.rs b/rust/src/length.rs
index 0c3d24db..119e1c90 100644
--- a/rust/src/length.rs
+++ b/rust/src/length.rs
@@ -358,7 +358,7 @@ fn parse_dash_array(s: &str) -> Result<Vec<RsvgLength>, AttributeError> {
         // split at whitespace
         .flat_map(|slice| slice.split_whitespace())
         // parse it into an RsvgLength
-        .map(|d| RsvgLength::parse(d.into(), LengthDir::Both))
+        .map(|d| RsvgLength::parse(d, LengthDir::Both))
         // collect into a Result<Vec<T>, E>.
         // it will short-circuit iteslf upon the first error encountered
         // like if you returned from a for-loop


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