From 7213de1c49e448c7c6ad2d30dc3e6b3a13e090df Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Wed, 12 Nov 2014 15:51:51 -0800 Subject: Fallout from deprecation This commit handles the fallout from deprecating `_with` and `_equiv` methods. --- src/libstd/collections/hash/map.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 2eee6976339..69375e8d4f8 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -1944,11 +1944,11 @@ mod test_map { m.insert("baz".to_string(), baz); - assert_eq!(m.find_equiv("foo"), Some(&foo)); - assert_eq!(m.find_equiv("bar"), Some(&bar)); - assert_eq!(m.find_equiv("baz"), Some(&baz)); + assert_eq!(m.get("foo"), Some(&foo)); + assert_eq!(m.get("bar"), Some(&bar)); + assert_eq!(m.get("baz"), Some(&baz)); - assert_eq!(m.find_equiv("qux"), None); + assert_eq!(m.get("qux"), None); } #[test] -- cgit 1.4.1-3-g733a5