Skip to content

Commit 865e85d

Browse files
committed
fixup-3fc487b93d4bccb70406ca3d0db3032c77224aad
1 parent 8a20279 commit 865e85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/bool_assert_inverted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// // Okay
2525
/// assert_ne!("a".is_empty(), true);
2626
/// ```
27-
#[clippy::version = "1.XX.0"]
27+
#[clippy::version = "1.58.0"]
2828
pub BOOL_ASSERT_INVERTED,
2929
style,
3030
"Asserting on an inverted condition"
@@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for BoolAssertInverted {
4040
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
4141
let macros = ["assert", "debug_assert"];
4242

43-
for mac in macros.iter() {
43+
for mac in &macros {
4444
if let Some(span) = is_direct_expn_of(expr.span, mac) {
4545
if let Some(args) = higher::extract_assert_macro_args(expr) {
4646
if let [a, ..] = args[..] {

0 commit comments

Comments
 (0)