mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
Use impl Default
instead of new()
constructors
This commit is contained in:
parent
3177e60408
commit
dc51d4ccda
11 changed files with 24 additions and 22 deletions
|
@ -62,7 +62,7 @@ fn load(mut cx: FunctionContext) -> JsResult<JsValue> {
|
|||
}
|
||||
None => vec![],
|
||||
};
|
||||
let mut compiler = sixtyfps_interpreter::ComponentCompiler::new();
|
||||
let mut compiler = sixtyfps_interpreter::ComponentCompiler::default();
|
||||
compiler.set_include_paths(include_paths);
|
||||
let c = spin_on::spin_on(compiler.build_from_path(path));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue