diff options
author | Alex Crichton <alex@alexcrichton.com> | 2018-12-17 17:45:35 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2018-12-17 17:45:35 -0800 |
commit | c1a369f44762045e65989caa9491e153d1f358e6 (patch) | |
tree | 5fef35e1bd647687cdecda830134d5079d64ea4d /src/macros.rs | |
parent | 1ef180d06ed4ec207c41b2595feaca84959e709e (diff) | |
download | milf-rs-c1a369f44762045e65989caa9491e153d1f358e6.tar.gz milf-rs-c1a369f44762045e65989caa9491e153d1f358e6.zip |
Run `cargo fmt`
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/macros.rs b/src/macros.rs index b4c7b22..8b76591 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,6 +1,6 @@ pub use serde::de::{Deserialize, IntoDeserializer}; -use value::{Value, Table, Array}; +use value::{Array, Table, Value}; /// Construct a [`toml::Value`] from TOML syntax. /// @@ -424,7 +424,10 @@ pub fn push_toml(root: &mut Value, path: &[&str]) { if !target.is_array() { *target = Value::Array(Array::new()); } - target.as_array_mut().unwrap().push(Value::Table(Table::new())); + target + .as_array_mut() + .unwrap() + .push(Value::Table(Table::new())); } fn traverse<'a>(root: &'a mut Value, path: &[&str]) -> &'a mut Value { |