diff options
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/from_source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/from_source.rs b/crates/ra_hir/src/from_source.rs index 94a5e0b0d..67b127ba5 100644 --- a/crates/ra_hir/src/from_source.rs +++ b/crates/ra_hir/src/from_source.rs | |||
@@ -238,7 +238,7 @@ impl Module { | |||
238 | _ => { | 238 | _ => { |
239 | let src_parent = InFile { | 239 | let src_parent = InFile { |
240 | file_id: src.file_id, | 240 | file_id: src.file_id, |
241 | value: ModuleSource::new(db, Some(src.file_id.original_file(db)), None), | 241 | value: ModuleSource::from_file_id(db, src.file_id.original_file(db)), |
242 | }; | 242 | }; |
243 | Module::from_definition(db, src_parent) | 243 | Module::from_definition(db, src_parent) |
244 | } | 244 | } |