Optimize std_detect's caching (#908)
This commit is contained in:
@@ -120,7 +120,7 @@ cfg_if! {
|
||||
#[inline]
|
||||
#[allow(dead_code)]
|
||||
fn check_for(x: Feature) -> bool {
|
||||
cache::test(x as u32, self::os::detect_features)
|
||||
cache::test(x as u32)
|
||||
}
|
||||
|
||||
/// Returns an `Iterator<Item=(&'static str, bool)>` where
|
||||
|
||||
Reference in New Issue
Block a user