chore: Rust 1.86.0 linting

This commit is contained in:
Jack Wills
2025-04-14 11:47:00 +00:00
parent 997eebca20
commit 9acf60334c
8 changed files with 23 additions and 21 deletions
+3 -3
View File
@@ -481,7 +481,7 @@ impl ByteStats {
pub const fn new(value: u64) -> Self {
Self(value)
}
pub fn update(&mut self, value: u64) {
pub const fn update(&mut self, value: u64) {
self.0 = value;
}
}
@@ -567,7 +567,7 @@ impl Logs {
pub fn insert(&mut self, line: ListItem<'static>, tz: LogsTz) {
if self.tz.insert(tz) {
self.logs.items.push(line);
};
}
}
pub fn to_vec(&self) -> Vec<ListItem<'static>> {
@@ -598,7 +598,7 @@ impl Logs {
self.logs.items.len()
}
pub fn state(&mut self) -> &mut ListState {
pub const fn state(&mut self) -> &mut ListState {
&mut self.logs.state
}
}