Optimize std_detect's caching (#908)

This commit is contained in:
Thom Chiovoloni
2020-09-16 18:43:25 -07:00
committed by GitHub
parent 5ce2b53048
commit 6a0969d12f
2 changed files with 47 additions and 34 deletions

View File

@@ -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