Skip to content

Commit

Permalink
fixup-3fc487b93d4bccb70406ca3d0db3032c77224aad
Browse files Browse the repository at this point in the history
  • Loading branch information
couchand committed Nov 17, 2021
1 parent 8a20279 commit 865e85d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/bool_assert_inverted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare_clippy_lint! {
/// // Okay
/// assert_ne!("a".is_empty(), true);
/// ```
#[clippy::version = "1.XX.0"]
#[clippy::version = "1.58.0"]
pub BOOL_ASSERT_INVERTED,
style,
"Asserting on an inverted condition"
Expand All @@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for BoolAssertInverted {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
let macros = ["assert", "debug_assert"];

for mac in macros.iter() {
for mac in &macros {
if let Some(span) = is_direct_expn_of(expr.span, mac) {
if let Some(args) = higher::extract_assert_macro_args(expr) {
if let [a, ..] = args[..] {
Expand Down

0 comments on commit 865e85d

Please sign in to comment.