From 7cdaa3b574a1c9dd94c1d0abc260f8a4d366cd98 Mon Sep 17 00:00:00 2001 From: Jacherr Date: Wed, 8 Nov 2023 21:47:58 +0000 Subject: [PATCH] replace incorrect bool --- clippy_lints/src/types/vec_box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) =>