From c260f1244d78736f512bf8218ebe908030727b55 Mon Sep 17 00:00:00 2001 From: Firstyear Date: Thu, 13 Jul 2023 06:51:40 +1000 Subject: [PATCH] Ensure we dont use std hashmaps (#1848) * Ensure we dont use std hashmaps * coalescing the clippy config files --------- Co-authored-by: James Hodgkinson --- .clippy.toml => clippy.toml | 2 ++ server/lib/src/lib.rs | 1 + 2 files changed, 3 insertions(+) rename .clippy.toml => clippy.toml (86%) diff --git a/.clippy.toml b/clippy.toml similarity index 86% rename from .clippy.toml rename to clippy.toml index 2f6941e9f..d896884f7 100644 --- a/.clippy.toml +++ b/clippy.toml @@ -11,3 +11,5 @@ too-many-arguments-threshold = 8 # default's 250 type-complexity-threshold = 300 + +disallowed-types = ["std::collections::HashMap", "std::collections::HashSet"] diff --git a/server/lib/src/lib.rs b/server/lib/src/lib.rs index 711f76bdb..ff73a09d2 100644 --- a/server/lib/src/lib.rs +++ b/server/lib/src/lib.rs @@ -14,6 +14,7 @@ #![deny(clippy::await_holding_lock)] #![deny(clippy::needless_pass_by_value)] #![deny(clippy::trivially_copy_pass_by_ref)] +#![deny(clippy::disallowed_types)] #![allow(clippy::unreachable)] #[cfg(all(jemallocator, test, not(target_family = "windows")))]