diff options
author | Aleksey Kladov <[email protected]> | 2019-11-24 12:13:56 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-24 12:18:12 +0000 |
commit | e0b06cb672b7aae770fea24e4a5efdbec8cbf5c6 (patch) | |
tree | 8623aa0e20f91374ad8d10a6fb1d807274dee5e8 /crates/ra_hir/src/code_model.rs | |
parent | 982a32aca317deb91ae03346cbc7880bd7d4429b (diff) |
Switch to StaticLoc for statics
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 36ea8d8bf..905bb5bcb 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -734,7 +734,7 @@ pub struct Static { | |||
734 | 734 | ||
735 | impl Static { | 735 | impl Static { |
736 | pub fn module(self, db: &impl DefDatabase) -> Module { | 736 | pub fn module(self, db: &impl DefDatabase) -> Module { |
737 | Module { id: self.id.module(db) } | 737 | Module { id: self.id.lookup(db).module(db) } |
738 | } | 738 | } |
739 | 739 | ||
740 | pub fn krate(self, db: &impl DefDatabase) -> Option<Crate> { | 740 | pub fn krate(self, db: &impl DefDatabase) -> Option<Crate> { |