[librsvg] cargo-clippy: parse_dash_array() - remove redundant conversion
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] cargo-clippy: parse_dash_array() - remove redundant conversion
- Date: Thu, 22 Feb 2018 19:55:22 +0000 (UTC)
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]