diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-06 12:25:16 -0500 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-06 12:26:08 -0500 |
| commit | eec145be3f5e5f763e61749a6737f90df8504e05 (patch) | |
| tree | ff30ca7802a92034a30cb57dcf4c89733b2952b6 /src/libsyntax/util | |
| parent | cf3b2e4fe6044cce018b723de9b21c500c6eac41 (diff) | |
| download | rust-eec145be3f5e5f763e61749a6737f90df8504e05.tar.gz rust-eec145be3f5e5f763e61749a6737f90df8504e05.zip | |
Fallout from collection conventions
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index e6c98a9e3d0..bc6d6d7a521 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -45,7 +45,7 @@ impl<T: Eq + Hash + Clone + 'static> Interner<T> { pub fn intern(&self, val: T) -> Name { let mut map = self.map.borrow_mut(); - match (*map).find(&val) { + match (*map).get(&val) { Some(&idx) => return idx, None => (), } |
