diff options
Diffstat (limited to 'crates/ra_hir/src/lang_item.rs')
-rw-r--r-- | crates/ra_hir/src/lang_item.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/ra_hir/src/lang_item.rs b/crates/ra_hir/src/lang_item.rs index 6c4e8ffbd..e1780ed38 100644 --- a/crates/ra_hir/src/lang_item.rs +++ b/crates/ra_hir/src/lang_item.rs | |||
@@ -22,14 +22,14 @@ pub enum LangItemTarget { | |||
22 | 22 | ||
23 | impl LangItemTarget { | 23 | impl LangItemTarget { |
24 | pub(crate) fn krate(&self, db: &impl HirDatabase) -> Option<Crate> { | 24 | pub(crate) fn krate(&self, db: &impl HirDatabase) -> Option<Crate> { |
25 | match self { | 25 | Some(match self { |
26 | LangItemTarget::Enum(e) => e.module(db).krate(db), | 26 | LangItemTarget::Enum(e) => e.module(db).krate(), |
27 | LangItemTarget::Function(f) => f.module(db).krate(db), | 27 | LangItemTarget::Function(f) => f.module(db).krate(), |
28 | LangItemTarget::ImplBlock(i) => i.module().krate(db), | 28 | LangItemTarget::ImplBlock(i) => i.module().krate(), |
29 | LangItemTarget::Static(s) => s.module(db).krate(db), | 29 | LangItemTarget::Static(s) => s.module(db).krate(), |
30 | LangItemTarget::Struct(s) => s.module(db).krate(db), | 30 | LangItemTarget::Struct(s) => s.module(db).krate(), |
31 | LangItemTarget::Trait(t) => t.module(db).krate(db), | 31 | LangItemTarget::Trait(t) => t.module(db).krate(), |
32 | } | 32 | }) |
33 | } | 33 | } |
34 | } | 34 | } |
35 | 35 | ||