From 77bda04f82944e2928d9a5fe559776c3760cb4bd Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 5 Nov 2023 19:30:37 +0100 Subject: [PATCH] Review fix --- src/common.rs | 2 +- src/lib.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common.rs b/src/common.rs index 74fc652dc..380d49bd3 100644 --- a/src/common.rs +++ b/src/common.rs @@ -9,7 +9,7 @@ use std::cmp::Ordering; use std::collections::HashMap; use std::convert::{From, TryFrom}; use std::ffi::OsStr; -use std::fmt::{self}; +use std::fmt; use std::path::Path; use std::str::FromStr; diff --git a/src/lib.rs b/src/lib.rs index b6bbf2b06..540980ab6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -523,10 +523,7 @@ mod test { #[test] fn check_cpu_arch() { - if !IS_SUPPORTED { - return; - } let s = System::new(); - assert!(s.cpu_arch().is_some()); + assert_eq!(s.cpu_arch().is_some(), IS_SUPPORTED); } }