about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacherr <jwc2002@outlook.com>2023-11-08 21:47:58 +0000
committerJacherr <jwc2002@outlook.com>2023-11-08 21:47:58 +0000
commit7cdaa3b574a1c9dd94c1d0abc260f8a4d366cd98 (patch)
treea036465b26ad98f0e7328c9334475a0f5bbb77f0
parent483b109e6e7f741f0827fde46c9263636498b12a (diff)
downloadrust-7cdaa3b574a1c9dd94c1d0abc260f8a4d366cd98.tar.gz
rust-7cdaa3b574a1c9dd94c1d0abc260f8a4d366cd98.zip
replace incorrect bool
-rw-r--r--clippy_lints/src/types/vec_box.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/types/vec_box.rs b/clippy_lints/src/types/vec_box.rs
index da4392418ca..9d5066199bd 100644
--- a/clippy_lints/src/types/vec_box.rs
+++ b/clippy_lints/src/types/vec_box.rs
@@ -52,7 +52,7 @@ pub(super) fn check(
                         && let Some(did) = cx.qpath_res(&path, inner.hir_id).opt_def_id() {
                         match_def_path(cx, did, &ALLOCATOR_GLOBAL)
                     } else {
-                        true
+                        false
                     }
                 },
                 (Some(GenericArg::Type(l)), Some(GenericArg::Type(r))) =>