Apply review suggestions
This commit is contained in:
committed by
Florian Diebold
parent
15fc643e05
commit
4496e2a06a
@@ -228,7 +228,9 @@ impl Module {
|
||||
Module::new(self.krate(), module_id)
|
||||
}
|
||||
|
||||
pub fn find_path(
|
||||
/// Finds a path that can be used to refer to the given item from within
|
||||
/// this module, if possible.
|
||||
pub fn find_use_path(
|
||||
self,
|
||||
db: &impl DefDatabase,
|
||||
item: ModuleDef,
|
||||
|
||||
@@ -206,7 +206,7 @@ impl SourceAnalyzer {
|
||||
}
|
||||
|
||||
pub fn module(&self) -> Option<crate::code_model::Module> {
|
||||
Some(crate::code_model::Module { id: self.resolver.module_id()? })
|
||||
Some(crate::code_model::Module { id: self.resolver.module()? })
|
||||
}
|
||||
|
||||
fn expr_id(&self, expr: &ast::Expr) -> Option<ExprId> {
|
||||
|
||||
Reference in New Issue
Block a user