diff --git a/phf/tests/test.rs b/phf/tests/test.rs index 9e7561b7..78e4ffaf 100644 --- a/phf/tests/test.rs +++ b/phf/tests/test.rs @@ -37,8 +37,8 @@ mod map { "bar" => 11, ); let hash = MAP.entries().map(|&e| e).collect::>(); - assert!(Some(&10) == hash.find(&("foo"))); - assert!(Some(&11) == hash.find(&("bar"))); + assert!(Some(&10) == hash.get(&("foo"))); + assert!(Some(&11) == hash.get(&("bar"))); assert_eq!(2, hash.len()); }