mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Remove identity map
calls (#10848)
Removes calls to `Iterator::map` that don't do any work.
This commit is contained in:
parent
4d42713e77
commit
c9368734d2
1 changed files with 2 additions and 6 deletions
|
@ -88,9 +88,7 @@ pub struct App {
|
|||
impl Debug for App {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "App {{ sub_apps: ")?;
|
||||
f.debug_map()
|
||||
.entries(self.sub_apps.iter().map(|(k, v)| (k, v)))
|
||||
.finish()?;
|
||||
f.debug_map().entries(self.sub_apps.iter()).finish()?;
|
||||
write!(f, "}}")
|
||||
}
|
||||
}
|
||||
|
@ -176,9 +174,7 @@ impl SubApp {
|
|||
impl Debug for SubApp {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "SubApp {{ app: ")?;
|
||||
f.debug_map()
|
||||
.entries(self.app.sub_apps.iter().map(|(k, v)| (k, v)))
|
||||
.finish()?;
|
||||
f.debug_map().entries(self.app.sub_apps.iter()).finish()?;
|
||||
write!(f, "}}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue