Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Address into_iter_on_ref lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 6, 2018
1 parent fc90a86 commit 35ab8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value/from.rs
Expand Up @@ -174,7 +174,7 @@ impl<'a, T: Clone + Into<Value>> From<&'a [T]> for Value {
/// # }
/// ```
fn from(f: &'a [T]) -> Self {
Value::Sequence(f.into_iter().cloned().map(Into::into).collect())
Value::Sequence(f.iter().cloned().map(Into::into).collect())
}
}

Expand Down

0 comments on commit 35ab8fc

Please sign in to comment.