From 395b1aa7e997a528e4f21e66f5f859001c1c3ec1 Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Mon, 26 May 2025 13:45:59 +0000 Subject: [PATCH] chore: Rust 1.87.0 linting --- src/app_data/container_state.rs | 6 +++--- src/app_data/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app_data/container_state.rs b/src/app_data/container_state.rs index fa9587f..a56b8a1 100644 --- a/src/app_data/container_state.rs +++ b/src/app_data/container_state.rs @@ -30,7 +30,7 @@ impl From<&str> for ContainerId { } impl ContainerId { - pub fn get(&self) -> &str { + pub const fn get(&self) -> &str { self.0.as_str() } @@ -76,7 +76,7 @@ macro_rules! unit_struct { } impl $name { - pub fn get(&self) -> &str { + pub const fn get(&self) -> &str { self.0.as_str() } @@ -594,7 +594,7 @@ impl Logs { self.logs.start(); } - pub fn len(&self) -> usize { + pub const fn len(&self) -> usize { self.logs.items.len() } diff --git a/src/app_data/mod.rs b/src/app_data/mod.rs index cbbc0e3..c4bb787 100644 --- a/src/app_data/mod.rs +++ b/src/app_data/mod.rs @@ -407,7 +407,7 @@ impl AppData { /// Container state methods /// Get the total number of none "hidden" containers - pub fn get_container_len(&self) -> usize { + pub const fn get_container_len(&self) -> usize { self.containers.items.len() }