diff options
author | Vincent Esche <[email protected]> | 2019-03-20 08:29:10 +0000 |
---|---|---|
committer | Vincent Esche <[email protected]> | 2019-03-20 08:29:10 +0000 |
commit | 21f20d5debe141e5c0d34ab56c4563a8be077aca (patch) | |
tree | 32ddffef8d2c21e9f5229f2608a1aaf8f60cc8b5 /crates/ra_db | |
parent | d080c8f02105bc52f069785ae3e843a6606560e1 (diff) |
Fixed typo in `Interner`’s name (`Intener`)
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_db/src/loc2id.rs | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index e006c6d27..f3389c91f 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -16,7 +16,7 @@ pub use crate::{ | |||
16 | input::{ | 16 | input::{ |
17 | FileId, CrateId, SourceRoot, SourceRootId, CrateGraph, Dependency, Edition, | 17 | FileId, CrateId, SourceRoot, SourceRootId, CrateGraph, Dependency, Edition, |
18 | }, | 18 | }, |
19 | loc2id::LocationIntener, | 19 | loc2id::LocationInterner, |
20 | }; | 20 | }; |
21 | 21 | ||
22 | pub trait CheckCanceled: panic::RefUnwindSafe { | 22 | pub trait CheckCanceled: panic::RefUnwindSafe { |
diff --git a/crates/ra_db/src/loc2id.rs b/crates/ra_db/src/loc2id.rs index d27fa7682..eae64a4eb 100644 --- a/crates/ra_db/src/loc2id.rs +++ b/crates/ra_db/src/loc2id.rs | |||
@@ -59,7 +59,7 @@ where | |||
59 | } | 59 | } |
60 | 60 | ||
61 | #[derive(Debug)] | 61 | #[derive(Debug)] |
62 | pub struct LocationIntener<LOC, ID> | 62 | pub struct LocationInterner<LOC, ID> |
63 | where | 63 | where |
64 | ID: ArenaId + Clone, | 64 | ID: ArenaId + Clone, |
65 | LOC: Clone + Eq + Hash, | 65 | LOC: Clone + Eq + Hash, |
@@ -67,7 +67,7 @@ where | |||
67 | map: Mutex<Loc2IdMap<LOC, ID>>, | 67 | map: Mutex<Loc2IdMap<LOC, ID>>, |
68 | } | 68 | } |
69 | 69 | ||
70 | impl<LOC, ID> panic::RefUnwindSafe for LocationIntener<LOC, ID> | 70 | impl<LOC, ID> panic::RefUnwindSafe for LocationInterner<LOC, ID> |
71 | where | 71 | where |
72 | ID: ArenaId + Clone, | 72 | ID: ArenaId + Clone, |
73 | LOC: Clone + Eq + Hash, | 73 | LOC: Clone + Eq + Hash, |
@@ -76,17 +76,17 @@ where | |||
76 | { | 76 | { |
77 | } | 77 | } |
78 | 78 | ||
79 | impl<LOC, ID> Default for LocationIntener<LOC, ID> | 79 | impl<LOC, ID> Default for LocationInterner<LOC, ID> |
80 | where | 80 | where |
81 | ID: ArenaId + Clone, | 81 | ID: ArenaId + Clone, |
82 | LOC: Clone + Eq + Hash, | 82 | LOC: Clone + Eq + Hash, |
83 | { | 83 | { |
84 | fn default() -> Self { | 84 | fn default() -> Self { |
85 | LocationIntener { map: Default::default() } | 85 | LocationInterner { map: Default::default() } |
86 | } | 86 | } |
87 | } | 87 | } |
88 | 88 | ||
89 | impl<LOC, ID> LocationIntener<LOC, ID> | 89 | impl<LOC, ID> LocationInterner<LOC, ID> |
90 | where | 90 | where |
91 | ID: ArenaId + Clone, | 91 | ID: ArenaId + Clone, |
92 | LOC: Clone + Eq + Hash, | 92 | LOC: Clone + Eq + Hash, |