diff options
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index b279bdeef..0c18df1a9 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -137,10 +137,7 @@ impl ModuleOrigin { | |||
137 | } | 137 | } |
138 | 138 | ||
139 | pub fn is_inline(&self) -> bool { | 139 | pub fn is_inline(&self) -> bool { |
140 | match self { | 140 | matches!(self, ModuleOrigin::Inline { .. }) |
141 | ModuleOrigin::Inline { .. } => true, | ||
142 | ModuleOrigin::CrateRoot { .. } | ModuleOrigin::File { .. } => false, | ||
143 | } | ||
144 | } | 141 | } |
145 | 142 | ||
146 | /// Returns a node which defines this module. | 143 | /// Returns a node which defines this module. |