forked from StudioInfinity/dyna3
chore: Hopefully final formatting items from review
This commit is contained in:
parent
627cea455c
commit
6dbbe2ce2d
1 changed files with 4 additions and 2 deletions
|
@ -688,7 +688,9 @@ impl Assembly {
|
|||
}
|
||||
|
||||
pub fn try_insert_element(&self, elt: impl Element + 'static) -> bool {
|
||||
let can_insert = self.elements_by_id.with_untracked(|elts_by_id| !elts_by_id.contains_key(elt.id()));
|
||||
let can_insert = self.elements_by_id.with_untracked(
|
||||
|elts_by_id| !elts_by_id.contains_key(elt.id())
|
||||
);
|
||||
if can_insert {
|
||||
self.insert_element_unchecked(elt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue