Skip to content

Commit

Permalink
modify code based on clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
smokyabdulrahman committed Feb 19, 2025
1 parent e62e3b4 commit e712ec8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3904,11 +3904,10 @@ impl<'db> Class<'db> {
let use_def = use_def_map(db, class_body_scope);
let declarations = use_def.public_declarations(symbol_id);

match symbol_from_declarations(db, declarations) {
Err((_, _conflicting_declarations)) => {
// There are conflicting declarations for this attribute in the class body.
}
_ => {} // Ignore success cases
if let Err((_, _conflicting_declarations)) =
symbol_from_declarations(db, declarations)
{
// There are conflicting declarations for this attribute in the class body.
}
}

Expand Down

0 comments on commit e712ec8

Please sign in to comment.