mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Apply review suggestions
This commit is contained in:
parent
15fc643e05
commit
4496e2a06a
9 changed files with 35 additions and 47 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue