We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2e1fa commit 5adb785Copy full SHA for 5adb785
crates/processing_render/src/config.rs
@@ -30,3 +30,9 @@ impl Config {
30
self.map.insert(k, v);
31
}
32
33
+
34
+impl Default for Config {
35
+ fn default() -> Self {
36
+ Self::new()
37
+ }
38
+}
crates/processing_render/src/lib.rs
@@ -274,7 +274,7 @@ fn set_app(app: App) {
274
/// asset_path is Optional because only python needs to use it.
275
#[cfg(not(target_arch = "wasm32"))]
276
pub fn init(config: Option<Config>) -> error::Result<()> {
277
- let config = config.unwrap_or_else(|| Config::new());
+ let config = config.unwrap_or_default();
278
279
setup_tracing()?;
280
if is_already_init()? {
0 commit comments