From fa152fcf52d0edc3172c6d24c44f46370d1316e7 Mon Sep 17 00:00:00 2001 From: Nilirad Date: Sat, 2 Dec 2023 21:22:50 +0100 Subject: [PATCH] Remove identity `map` calls --- crates/bevy_app/src/app.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index a8608171145c0..a6b3c6e2c8b56 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -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, "}}") } }