Skip to content

Commit

Permalink
Format with rustfmt 1.4.30-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 28, 2020
1 parent e63aedb commit 8225a8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/value/from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ impl<K: Into<String>, V: Into<Value>> FromIterator<(K, V)> for Value {
/// let x: Value = v.into_iter().collect();
/// ```
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self {
Value::Object(iter.into_iter().map(|(k, v)| (k.into(), v.into())).collect())
Value::Object(
iter.into_iter()
.map(|(k, v)| (k.into(), v.into()))
.collect(),
)
}
}

Expand Down

0 comments on commit 8225a8b

Please sign in to comment.