From 01cb7ee0a1122c435a1c782f08b42fa3bf6969e6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 10 Jul 2023 12:20:22 +0100 Subject: [PATCH] clippy: in tests, allow clippy::useless_vec This is a perf issue, only. If tests are too slow, we will notice and ca speed them up. We should optimise for clarity and convenience, rather than speed. Forbidding this can result in churn between vec![] and [] as tests are updated and changed. --- maint/add_warning | 1 + 1 file changed, 1 insertion(+) diff --git a/maint/add_warning b/maint/add_warning index 97a6df8f5..d0ed2cdd7 100755 --- a/maint/add_warning +++ b/maint/add_warning @@ -61,6 +61,7 @@ TEST_LINTS = """ #![allow(clippy::single_char_pattern)] #![allow(clippy::unwrap_used)] #![allow(clippy::unchecked_duration_subtraction)] +#![allow(clippy::useless_vec)] """ # ---------- some notes about lints we might use - NOT USED by any code here ----------