refactor: remove useless clone

WIP/draft
drendog 2024-08-15 07:46:52 +02:00
parent 1540ef72b2
commit ba5b6e6d8f
Signed by: dwenya
GPG Key ID: 8DD77074645332D0
1 changed files with 2 additions and 2 deletions

View File

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