mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
minor: New clippy lints
This commit is contained in:
parent
6725e046df
commit
4b6007115a
92 changed files with 180 additions and 201 deletions
|
|
@ -949,7 +949,7 @@ impl SourceAnalyzer {
|
|||
.map(|it| (it, None)),
|
||||
};
|
||||
}
|
||||
if parent().map_or(false, |it| ast::Visibility::can_cast(it.kind())) {
|
||||
if parent().is_some_and(|it| ast::Visibility::can_cast(it.kind())) {
|
||||
// No substitution because only modules can be inside visibilities, and those have no generics.
|
||||
resolve_hir_path_qualifier(db, &self.resolver, &hir_path, &types_map)
|
||||
.map(|it| (it, None))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue