diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-12 15:51:51 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-17 11:26:48 -0800 |
| commit | 7213de1c49e448c7c6ad2d30dc3e6b3a13e090df (patch) | |
| tree | 9133e9f7b6f954432eddd947cb74248a1751ea36 /src/libstd | |
| parent | 80a2867ea736007397aa2fbaa0e4c539c80e162c (diff) | |
| download | rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.tar.gz rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.zip | |
Fallout from deprecation
This commit handles the fallout from deprecating `_with` and `_equiv` methods.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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] |
