From 659146149152d8c8670899341e1c0d6505fa9cf0 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 1 Aug 2024 01:52:08 -0700 Subject: [PATCH] Remove redundant static lifetimes --- src/core/camera.rs | 4 ++-- src/core/theme.rs | 4 ++-- src/core/window.rs | 4 ++-- src/game/actor.rs | 4 ++-- src/game/actor/health.rs | 4 ++-- src/game/actor/level.rs | 4 ++-- src/game/audio.rs | 4 ++-- src/game/card.rs | 4 ++-- src/game/combat/projectile.rs | 4 ++-- src/game/spotlight.rs | 4 ++-- src/game/wave.rs | 4 ++-- src/util/config.rs | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/core/camera.rs b/src/core/camera.rs index 62f3932..7dbb201 100644 --- a/src/core/camera.rs +++ b/src/core/camera.rs @@ -28,8 +28,8 @@ struct CameraConfig { } impl Config for CameraConfig { - const PATH: &'static str = "config/camera.ron"; - const EXTENSION: &'static str = "camera.ron"; + const PATH: &str = "config/camera.ron"; + const EXTENSION: &str = "camera.ron"; fn on_load(&mut self, world: &mut World) { let (mut projection, mut follow) = r!(world diff --git a/src/core/theme.rs b/src/core/theme.rs index 924fc64..9a7ec91 100644 --- a/src/core/theme.rs +++ b/src/core/theme.rs @@ -31,8 +31,8 @@ pub struct ThemeConfig { } impl Config for ThemeConfig { - const PATH: &'static str = "config/theme.ron"; - const EXTENSION: &'static str = "theme.ron"; + const PATH: &str = "config/theme.ron"; + const EXTENSION: &str = "theme.ron"; fn on_load(&mut self, world: &mut World) { world.resource_mut::().0 = self.colors[ThemeColor::Body]; diff --git a/src/core/window.rs b/src/core/window.rs index b9cf0ce..a02caf0 100644 --- a/src/core/window.rs +++ b/src/core/window.rs @@ -34,8 +34,8 @@ pub struct WindowConfig { } impl Config for WindowConfig { - const PATH: &'static str = "config/window.ron"; - const EXTENSION: &'static str = "window.ron"; + const PATH: &str = "config/window.ron"; + const EXTENSION: &str = "window.ron"; fn on_load(&mut self, world: &mut World) { world diff --git a/src/game/actor.rs b/src/game/actor.rs index 5a70bfd..1927136 100644 --- a/src/game/actor.rs +++ b/src/game/actor.rs @@ -56,8 +56,8 @@ pub struct ActorConfig { } impl Config for ActorConfig { - const PATH: &'static str = "config/actor.ron"; - const EXTENSION: &'static str = "actor.ron"; + const PATH: &str = "config/actor.ron"; + const EXTENSION: &str = "actor.ron"; fn on_load(&mut self, world: &mut World) { let mut system_state = diff --git a/src/game/actor/health.rs b/src/game/actor/health.rs index 7270788..c628204 100644 --- a/src/game/actor/health.rs +++ b/src/game/actor/health.rs @@ -19,8 +19,8 @@ pub struct HealthConfig { } impl Config for HealthConfig { - const PATH: &'static str = "config/health.ron"; - const EXTENSION: &'static str = "health.ron"; + const PATH: &str = "config/health.ron"; + const EXTENSION: &str = "health.ron"; } impl HealthConfig { diff --git a/src/game/actor/level.rs b/src/game/actor/level.rs index e9cefb2..a50a0f5 100644 --- a/src/game/actor/level.rs +++ b/src/game/actor/level.rs @@ -21,8 +21,8 @@ pub struct LevelConfig { } impl Config for LevelConfig { - const PATH: &'static str = "config/level.ron"; - const EXTENSION: &'static str = "level.ron"; + const PATH: &str = "config/level.ron"; + const EXTENSION: &str = "level.ron"; } impl LevelConfig { diff --git a/src/game/audio.rs b/src/game/audio.rs index 6a6ccf4..2f9c88a 100644 --- a/src/game/audio.rs +++ b/src/game/audio.rs @@ -30,8 +30,8 @@ pub struct AudioConfig { } impl Config for AudioConfig { - const PATH: &'static str = "config/audio.ron"; - const EXTENSION: &'static str = "audio.ron"; + const PATH: &str = "config/audio.ron"; + const EXTENSION: &str = "audio.ron"; fn on_load(&mut self, world: &mut World) { world.resource::