chore: Rust 1.87.0 linting

This commit is contained in:
Jack Wills
2025-05-26 13:45:59 +00:00
parent 324f826827
commit 395b1aa7e9
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ impl From<&str> for ContainerId {
} }
impl ContainerId { impl ContainerId {
pub fn get(&self) -> &str { pub const fn get(&self) -> &str {
self.0.as_str() self.0.as_str()
} }
@@ -76,7 +76,7 @@ macro_rules! unit_struct {
} }
impl $name { impl $name {
pub fn get(&self) -> &str { pub const fn get(&self) -> &str {
self.0.as_str() self.0.as_str()
} }
@@ -594,7 +594,7 @@ impl Logs {
self.logs.start(); self.logs.start();
} }
pub fn len(&self) -> usize { pub const fn len(&self) -> usize {
self.logs.items.len() self.logs.items.len()
} }
+1 -1
View File
@@ -407,7 +407,7 @@ impl AppData {
/// Container state methods /// Container state methods
/// Get the total number of none "hidden" containers /// 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() self.containers.items.len()
} }