refactor: remove useless clone
parent
1540ef72b2
commit
ba5b6e6d8f
|
@ -300,10 +300,10 @@ impl<'a> WindowingSystem<'a> {
|
||||||
let component_definition = self
|
let component_definition = self
|
||||||
.config
|
.config
|
||||||
.component_definition
|
.component_definition
|
||||||
.clone()
|
.as_ref()
|
||||||
.ok_or_else(|| anyhow::anyhow!("Component definition not set"))?;
|
.ok_or_else(|| anyhow::anyhow!("Component definition not set"))?;
|
||||||
let (window, component_instance) =
|
let (window, component_instance) =
|
||||||
self.initialize_slint_ui(renderer, &component_definition)?;
|
self.initialize_slint_ui(renderer, component_definition)?;
|
||||||
|
|
||||||
self.window = Some(Rc::clone(&window));
|
self.window = Some(Rc::clone(&window));
|
||||||
self.state.borrow_mut().set_window(window);
|
self.state.borrow_mut().set_window(window);
|
||||||
|
|
Loading…
Reference in New Issue