OS X is "macos", not "darwin"

This commit is contained in:
Aaron Hill 2019-04-08 22:48:57 -04:00
parent 5f997645bc
commit 174874420b
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -30,7 +30,7 @@ fn main() {
let _map : HashMap<i32, i32, BuildHasherDefault<collections::hash_map::DefaultHasher>> = Default::default();
// TODO: Implement random number generation on OS X
if cfg!(not(target_os = "darwin")) {
if cfg!(not(target_os = "macos")) {
let map_normal: HashMap<i32, i32> = HashMap::new();
test_map(map_normal);
} else {