diff options
| author | Shaun Steenkamp <theguywholikeslinux@gmail.com> | 2018-02-13 17:15:58 +0000 |
|---|---|---|
| committer | Shaun Steenkamp <theguywholikeslinux@gmail.com> | 2018-02-13 17:15:58 +0000 |
| commit | f3330cea7f43288362fec9b010b04e22dfbf45a2 (patch) | |
| tree | 748df2d0b40445ec6fa74ed197bad846bf5bf07c /src/libstd | |
| parent | 94c3c84b6a9c382862b1f750f782c33256fa58bd (diff) | |
| download | rust-f3330cea7f43288362fec9b010b04e22dfbf45a2.tar.gz rust-f3330cea7f43288362fec9b010b04e22dfbf45a2.zip | |
38880 fix incorrect negation
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index fdc62be3dd9..a8f419d6c6c 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -564,7 +564,7 @@ impl<K, V, S> HashMap<K, V, S> where K: Borrow<Q>, Q: Eq + Hash { - if !self.is_empty() { + if self.is_empty() { return None; } |
