Skip to content

Commit

Permalink
Publicize file_id to make test_db compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 5, 2019
1 parent 006a583 commit d15f300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ra_hir_def/src/nameres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl ModuleOrigin {
}
}

pub(crate) fn file_id(&self) -> Option<FileId> {
pub fn file_id(&self) -> Option<FileId> {
match self {
ModuleOrigin::File { definition, .. } | ModuleOrigin::CrateRoot { definition } => {
Some(*definition)
Expand Down

0 comments on commit d15f300

Please sign in to comment.