Use impl Default instead of new() constructors

This commit is contained in:
Tobias Hunger 2021-07-09 20:29:54 +02:00 committed by Simon Hausmann
parent 3177e60408
commit dc51d4ccda
11 changed files with 24 additions and 22 deletions

View file

@ -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));