From af2dd53e131e950f29bb089e48bc9f42f621a9d7 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 15 Nov 2014 08:18:43 -0800 Subject: [PATCH] Fix some deprecation warnings --- phf/tests/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }