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
@ -88,9 +88,7 @@ pub struct App {
|
|||||||
impl Debug for App {
|
impl Debug for App {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(f, "App {{ sub_apps: ")?;
|
write!(f, "App {{ sub_apps: ")?;
|
||||||
f.debug_map()
|
f.debug_map().entries(self.sub_apps.iter()).finish()?;
|
||||||
.entries(self.sub_apps.iter().map(|(k, v)| (k, v)))
|
|
||||||
.finish()?;
|
|
||||||
write!(f, "}}")
|
write!(f, "}}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -176,9 +174,7 @@ impl SubApp {
|
|||||||
impl Debug for SubApp {
|
impl Debug for SubApp {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(f, "SubApp {{ app: ")?;
|
write!(f, "SubApp {{ app: ")?;
|
||||||
f.debug_map()
|
f.debug_map().entries(self.app.sub_apps.iter()).finish()?;
|
||||||
.entries(self.app.sub_apps.iter().map(|(k, v)| (k, v)))
|
|
||||||
.finish()?;
|
|
||||||
write!(f, "}}")
|
write!(f, "}}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user