diff --git a/src/yaml.rs b/src/yaml.rs index 964a184..28d280f 100644 --- a/src/yaml.rs +++ b/src/yaml.rs @@ -207,7 +207,8 @@ impl fmt::Display for PrintExpr<'_> { // All these other types can simply be serialized as is. Expr::Str(_) | Expr::Float(_) | Expr::Integer(_) | Expr::Bool(_) => { - let out = serde_yaml::to_string(&self.0).expect("string serialization to YAML failed"); + let out = serde_yaml::to_string(&self.0) + .expect("string serialization to YAML failed"); // Unfortunately, `serde_yaml` cannot serialize these values on its own // without embedding them in a full document (starting with `---` and diff --git a/tests/general.rs b/tests/general.rs index 493f689..2d928d0 100644 --- a/tests/general.rs +++ b/tests/general.rs @@ -240,7 +240,9 @@ fn full() { kind: meta::FieldKind::Leaf { env: Some("ENV_TEST_FULL_2"), kind: meta::LeafKind::Required { - default: Some(meta::Expr::Integer(meta::Integer::U16(8080))), + default: Some( + meta::Expr::Integer(meta::Integer::U16(8080)) + ), }, }, },