chore: fixing linter warnings
This commit is contained in:
parent
ebcfa5f2d0
commit
8e99406a8b
17 changed files with 79 additions and 75 deletions
|
|
@ -183,7 +183,7 @@ where
|
|||
self.storage
|
||||
.0
|
||||
.entry(TypeId::of::<Data>())
|
||||
.or_insert_with(SecondaryMap::new)
|
||||
.or_default()
|
||||
.insert(id, Box::new(data));
|
||||
}
|
||||
}
|
||||
|
|
@ -297,7 +297,7 @@ where
|
|||
}
|
||||
|
||||
pub fn indent(&self, id: Entity) -> Option<u16> {
|
||||
self.indents.get(id).map(|indent| *indent)
|
||||
self.indents.get(id).copied()
|
||||
}
|
||||
|
||||
pub fn indent_set(&mut self, id: Entity, indent: u16) -> Option<u16> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue