cargo-clippy: parse_dash_array() - remove redundant conversion

parent 3925cd11
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment