Skip to content

Commit

Permalink
lint: allow clippy::type_complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Nov 22, 2023
1 parent ab6f6c6 commit 091c080
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
3 changes: 2 additions & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
msrv = "1.64"
# Clippy configuration
# https://doc.rust-lang.org/nightly/clippy/lint_configuration.html
2 changes: 0 additions & 2 deletions viz-core/src/middleware/cors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub struct Config {
allow_headers: HashSet<HeaderName>,
allow_origins: HashSet<HeaderValue>,
expose_headers: HashSet<HeaderName>,
#[allow(clippy::type_complexity)]
origin_verify: Option<Arc<dyn Fn(&HeaderValue) -> bool + Send + Sync>>,
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 091c080

Please sign in to comment.