diff --git a/Cargo.toml b/Cargo.toml index f6d9b5e0..598b6313 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -125,3 +125,4 @@ all = "deny" pedantic = "deny" module_name_repetitions = { level = "allow", priority = 1 } too_many_lines = { level = "allow", priority = 1 } +type_complexity = { level = "allow", priority = 1 } diff --git a/clippy.toml b/clippy.toml index ad0ea4e7..938388da 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,2 @@ -msrv = "1.64" +# Clippy configuration +# https://doc.rust-lang.org/nightly/clippy/lint_configuration.html diff --git a/viz-core/src/middleware/cors.rs b/viz-core/src/middleware/cors.rs index 57791ea9..3ca29479 100644 --- a/viz-core/src/middleware/cors.rs +++ b/viz-core/src/middleware/cors.rs @@ -24,7 +24,6 @@ pub struct Config { allow_headers: HashSet, allow_origins: HashSet, expose_headers: HashSet, - #[allow(clippy::type_complexity)] origin_verify: Option bool + Send + Sync>>, } @@ -118,7 +117,6 @@ impl Config { } /// A function to verify the origin. If the function returns false, the request will be rejected. - #[allow(clippy::type_complexity)] #[must_use] pub fn origin_verify( mut self,