Make ImportPrefix a configuration option

This commit is contained in:
Lukas Wirth 2020-10-05 17:41:49 +02:00
parent 67e71619b9
commit 8699331014
6 changed files with 49 additions and 10 deletions

View file

@ -391,8 +391,9 @@ impl Module {
self,
db: &dyn DefDatabase,
item: impl Into<ItemInNs>,
prefix_kind: PrefixKind,
) -> Option<ModPath> {
hir_def::find_path::find_path_prefixed(db, item.into(), self.into(), PrefixKind::Plain)
hir_def::find_path::find_path_prefixed(db, item.into(), self.into(), prefix_kind)
}
}