Skip to content

Commit d15f300

Browse files
committed
Publicize file_id to make test_db compile
1 parent 006a583 commit d15f300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_hir_def/src/nameres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl ModuleOrigin {
139139
}
140140
}
141141

142-
pub(crate) fn file_id(&self) -> Option<FileId> {
142+
pub fn file_id(&self) -> Option<FileId> {
143143
match self {
144144
ModuleOrigin::File { definition, .. } | ModuleOrigin::CrateRoot { definition } => {
145145
Some(*definition)

0 commit comments

Comments
 (0)