Skip to content

Commit

Permalink
Auto merge of #117321 - chenyukang:yukang-fix-117142, r=petrochenkov
Browse files Browse the repository at this point in the history
Fix unused_parens issue when cast is followed LT

Fixes #117142

The original check only checks `a as (i32) < 0`, this fix extends it to handle `b + a as (i32) < 0`.

A better way is maybe we suggest `(a as i32) < 0` instead of suppressing the warning, maybe following PR could improve it.
  • Loading branch information
bors committed Jan 12, 2024
2 parents f6c599d + 9b5e966 commit 08d43de
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 08d43de

Please sign in to comment.