Skip to content

Commit

Permalink
Clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Jan 29, 2025
1 parent 6f7d471 commit b216fc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4139,7 +4139,6 @@ impl<'db> Class<'db> {
}

fn implicit_instance_attribute_lookup(
self,
db: &'db dyn Db,
body_scope: ScopeId<'db>,
name: &str,
Expand Down Expand Up @@ -4215,7 +4214,7 @@ impl<'db> Class<'db> {
}
Ok(symbol @ SymbolAndQualifiers(Symbol::Unbound, qualifiers)) => {
if let Some(symbol) =
self.implicit_instance_attribute_lookup(db, body_scope, name)
Self::implicit_instance_attribute_lookup(db, body_scope, name)
{
return symbol;
}
Expand All @@ -4234,7 +4233,7 @@ impl<'db> Class<'db> {
}
}
} else {
if let Some(symbol) = self.implicit_instance_attribute_lookup(db, body_scope, name) {
if let Some(symbol) = Self::implicit_instance_attribute_lookup(db, body_scope, name) {
return symbol;
}

Expand Down

0 comments on commit b216fc3

Please sign in to comment.