mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Remove almost unused ModuleSource::new
This commit is contained in:
parent
5c5f90ba57
commit
032eb3d68e
2 changed files with 2 additions and 20 deletions
|
@ -238,7 +238,7 @@ impl Module {
|
|||
_ => {
|
||||
let src_parent = InFile {
|
||||
file_id: src.file_id,
|
||||
value: ModuleSource::new(db, Some(src.file_id.original_file(db)), None),
|
||||
value: ModuleSource::from_file_id(db, src.file_id.original_file(db)),
|
||||
};
|
||||
Module::from_definition(db, src_parent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue