diff --git a/common/net/src/synced_components.rs b/common/net/src/synced_components.rs index 9f3482c304..de9e5e0f6c 100644 --- a/common/net/src/synced_components.rs +++ b/common/net/src/synced_components.rs @@ -14,7 +14,6 @@ //! when using the x macro defined here which requires this. /// This provides a lowercase name and the component type. -//#[rustfmt::skip] #[macro_export] macro_rules! synced_components { ($macro:ident) => { diff --git a/common/src/comp/energy.rs b/common/src/comp/energy.rs index 8969a2e14e..02ec4d76c9 100644 --- a/common/src/comp/energy.rs +++ b/common/src/comp/energy.rs @@ -78,7 +78,7 @@ impl Energy { /// results. pub fn update_maximum(&mut self, maximum: u32) { self.maximum = maximum; - // Clamp the current health to enforce the current <= maximum invariant. + // Clamp the current energy to enforce the current <= maximum invariant. self.current = self.current.min(self.maximum); }