minor: New clippy lints

This commit is contained in:
Lukas Wirth 2025-01-06 11:21:25 +01:00
parent 6725e046df
commit 4b6007115a
92 changed files with 180 additions and 201 deletions

View file

@ -285,7 +285,7 @@ impl Ctx<'_> {
if path.qualifier().is_some() {
return None;
}
if path.segment().map_or(false, |s| {
if path.segment().is_some_and(|s| {
s.parenthesized_arg_list().is_some()
|| (s.self_token().is_some() && path.parent_path().is_none())
}) {