chore: Rust 1.86.0 linting
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user