Skip to content

Commit

Permalink
make match more concise
Browse files Browse the repository at this point in the history
  • Loading branch information
incertia committed Apr 4, 2024
1 parent 7fb88b2 commit e5ec56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program_analysis/src/bitwise_complement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn visit_expression(expr: &Expression, reports: &mut ReportCollection) {
use Expression::*;
use ExpressionPrefixOpcode::*;
match expr {
PrefixOp { meta, prefix_op, .. } if matches!(prefix_op, Complement) => {
PrefixOp { meta, prefix_op: Complement, .. } => {
reports.push(build_report(meta));
}
PrefixOp { rhe, .. } => {
Expand Down

0 comments on commit e5ec56f

Please sign in to comment.