diff --git a/src/value/from.rs b/src/value/from.rs index 2fe8037bb..59e09fd8f 100644 --- a/src/value/from.rs +++ b/src/value/from.rs @@ -243,7 +243,11 @@ impl, V: Into> FromIterator<(K, V)> for Value { /// let x: Value = v.into_iter().collect(); /// ``` fn from_iter>(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(), + ) } }