aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r--crates/ra_hir/src/code_model.rs2
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 ed640d7fc..7d5d9b995 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -169,7 +169,7 @@ impl ModuleSource {
169 (None, Some(item_id)) => { 169 (None, Some(item_id)) => {
170 let module = item_id.to_node(db); 170 let module = item_id.to_node(db);
171 assert!(module.item_list().is_some(), "expected inline module"); 171 assert!(module.item_list().is_some(), "expected inline module");
172 ModuleSource::Module(module.to_owned()) 172 ModuleSource::Module(module)
173 } 173 }
174 (None, None) => panic!(), 174 (None, None) => panic!(),
175 } 175 }