We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a20279 commit 865e85dCopy full SHA for 865e85d
clippy_lints/src/bool_assert_inverted.rs
@@ -24,7 +24,7 @@ declare_clippy_lint! {
24
/// // Okay
25
/// assert_ne!("a".is_empty(), true);
26
/// ```
27
- #[clippy::version = "1.XX.0"]
+ #[clippy::version = "1.58.0"]
28
pub BOOL_ASSERT_INVERTED,
29
style,
30
"Asserting on an inverted condition"
@@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for BoolAssertInverted {
40
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
41
let macros = ["assert", "debug_assert"];
42
43
- for mac in macros.iter() {
+ for mac in ¯os {
44
if let Some(span) = is_direct_expn_of(expr.span, mac) {
45
if let Some(args) = higher::extract_assert_macro_args(expr) {
46
if let [a, ..] = args[..] {
0 commit comments