Skip to content

Commit 5adb785

Browse files
committed
Clippy. also wow rust is cool
1 parent 2a2e1fa commit 5adb785

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

crates/processing_render/src/config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ impl Config {
3030
self.map.insert(k, v);
3131
}
3232
}
33+
34+
impl Default for Config {
35+
fn default() -> Self {
36+
Self::new()
37+
}
38+
}

crates/processing_render/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ fn set_app(app: App) {
274274
/// asset_path is Optional because only python needs to use it.
275275
#[cfg(not(target_arch = "wasm32"))]
276276
pub fn init(config: Option<Config>) -> error::Result<()> {
277-
let config = config.unwrap_or_else(|| Config::new());
277+
let config = config.unwrap_or_default();
278278

279279
setup_tracing()?;
280280
if is_already_init()? {

0 commit comments

Comments
 (0)