revert: expect lint
Expect lint was causing issues with crates/docker builds, revert until fix is found
This commit is contained in:
@@ -468,7 +468,7 @@ impl ByteStats {
|
||||
}
|
||||
}
|
||||
|
||||
#[expect(clippy::cast_precision_loss)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
impl Stats for ByteStats {
|
||||
fn get_value(&self) -> f64 {
|
||||
self.0 as f64
|
||||
@@ -608,7 +608,7 @@ impl fmt::Display for ContainerItem {
|
||||
}
|
||||
|
||||
impl ContainerItem {
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
/// Create a new container item
|
||||
pub fn new(
|
||||
created: u64,
|
||||
@@ -660,7 +660,7 @@ impl ContainerItem {
|
||||
}
|
||||
|
||||
/// Convert cpu stats into a vec for the charts function
|
||||
#[expect(clippy::cast_precision_loss)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
fn get_cpu_dataset(&self) -> Vec<(f64, f64)> {
|
||||
self.cpu_stats
|
||||
.iter()
|
||||
@@ -670,7 +670,7 @@ impl ContainerItem {
|
||||
}
|
||||
|
||||
/// Convert mem stats into a Vec for the charts function
|
||||
#[expect(clippy::cast_precision_loss)]
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
fn get_mem_dataset(&self) -> Vec<(f64, f64)> {
|
||||
self.mem_stats
|
||||
.iter()
|
||||
|
||||
+2
-2
@@ -151,7 +151,7 @@ impl AppData {
|
||||
}
|
||||
|
||||
/// Current time as unix timestamp
|
||||
#[expect(clippy::expect_used)]
|
||||
#[allow(clippy::expect_used)]
|
||||
fn get_systemtime() -> u64 {
|
||||
SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
@@ -933,7 +933,7 @@ impl AppData {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[expect(clippy::unwrap_used)]
|
||||
#[allow(clippy::unwrap_used)]
|
||||
mod tests {
|
||||
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user