From 4ec911c0d5a8b8d8174f866c44b3fe2cbaadfb28 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 22 May 2025 14:28:52 -0700 Subject: [PATCH] Fix clippy::nonminimal_bool --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bf2d3f1..55c5b56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -207,7 +207,7 @@ impl AutoCfg { }; // Sanity check with and without `std`. - if !ac.probe_raw("").is_ok() { + if ac.probe_raw("").is_err() { if ac.probe_raw("#![no_std]").is_ok() { ac.no_std = true; } else {