mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
janitor: fix redundant clones
This commit is contained in:
parent
9b535e8ee8
commit
55249c90de
2 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
|||
This module contains the intermediate representation of the code in the form of an object tree
|
||||
*/
|
||||
|
||||
// cSpell: ignore qualname
|
||||
|
||||
use itertools::Either;
|
||||
|
||||
use crate::diagnostics::{BuildDiagnostics, SourceLocation, Spanned};
|
||||
|
@ -681,7 +683,7 @@ impl Element {
|
|||
for prop_decl in node.PropertyDeclaration() {
|
||||
let prop_type = prop_decl
|
||||
.Type()
|
||||
.map(|type_node| type_from_node(type_node.clone(), diag, tr))
|
||||
.map(|type_node| type_from_node(type_node, diag, tr))
|
||||
// Type::Void is used for two way bindings without type specified
|
||||
.unwrap_or(Type::InferredProperty);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue