diff --git a/packages/backend-rs/src/misc/server_stats.rs b/packages/backend-rs/src/misc/server_stats.rs index 02a3ee08d4..ab9dc52be8 100644 --- a/packages/backend-rs/src/misc/server_stats.rs +++ b/packages/backend-rs/src/misc/server_stats.rs @@ -34,7 +34,7 @@ pub fn cpu_info() -> Result { Ok(Cpu { model: match system_info.cpus() { - cpus if cpus.is_empty() => { + [] => { tracing::debug!("failed to get CPU info"); "unknown".to_string() }