Skip to content

Commit 98b3546

Browse files
committed
fix clippy
1 parent 99393f2 commit 98b3546

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/inspector.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4901,11 +4901,10 @@ pub fn string_field<T: PartialReflect + From<String> + Into<String> + Default +
49014901
return;
49024902
}
49034903
let new = T::from(text);
4904-
if new != *value.lock_ref() {
4905-
if let Ok(&ChildOf(parent)) = child_ofs.get(ui_entity) {
4904+
if new != *value.lock_ref()
4905+
&& let Ok(&ChildOf(parent)) = child_ofs.get(ui_entity) {
49064906
field.update(parent, new.to_dynamic());
49074907
}
4908-
}
49094908
}),
49104909
)
49114910
})

0 commit comments

Comments
 (0)