mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
remove clippy warning in rust code gen
This generated a `clippy::clone-on-ref-ptr` warning
This commit is contained in:
parent
d5d772dcbd
commit
0ebcc2be70
1 changed files with 1 additions and 1 deletions
|
@ -1243,7 +1243,7 @@ fn generate_item_tree(
|
|||
quote!(
|
||||
#[allow(unused)]
|
||||
fn window_adapter(&self) -> Rc<dyn sp::WindowAdapter> {
|
||||
self.window_adapter_ref().unwrap().clone()
|
||||
Rc::clone(self.window_adapter_ref().unwrap())
|
||||
}
|
||||
|
||||
fn window_adapter_ref(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue