Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Mar 6, 2025
1 parent 22cf270 commit 283b2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aderyn_core/src/detect/low/useless_public_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl IssueDetector for UselessPublicFunctionDetector {
context.function_definitions().into_iter().filter(|&function| {
matches!(function.visibility, Visibility::Public)
&& !matches!(function.kind(), &FunctionKind::Constructor)
&& !matches!(function.overrides, Some(_))
&& !matches!(function.is_virtual, true)
&& function.overrides.is_none()
&& !function.is_virtual
&& count_identifiers_that_reference_an_id(context, function.id) == 0
});

Expand Down

0 comments on commit 283b2c3

Please sign in to comment.