Skip to content

Commit 2c31707

Browse files
committed
chore: fmt all
1 parent 0fd9986 commit 2c31707

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,7 @@ impl Bombadil {
520520
};
521521

522522
// Resolve variables from path
523-
let vars = Variables::from_paths(&path, &config.settings.vars)?
524-
.with_os();
523+
let vars = Variables::from_paths(&path, &config.settings.vars)?.with_os();
525524

526525
// Resolve hooks from settings
527526
let posthooks = config

src/templating.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,15 @@ impl Variables {
179179
.and_then(|value| value.as_object_mut())
180180
}
181181

182-
pub(crate) fn with_os(mut self) -> Self {
182+
pub(crate) fn with_os(mut self) -> Self {
183183
let Some(vars) = self.inner.as_object_mut() else {
184184
panic!("Variables should be a Value::Object");
185185
};
186186

187-
vars.insert("os".to_string(), Value::String(std::env::consts::OS.to_string()));
187+
vars.insert(
188+
"os".to_string(),
189+
Value::String(std::env::consts::OS.to_string()),
190+
);
188191
self
189192
}
190193
}

0 commit comments

Comments
 (0)