Skip to content

Commit

Permalink
fix: clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Jan 30, 2023
1 parent c67420a commit eda9dac
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/config/cors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use serde::Deserialize;

#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
#[derive(Default)]
pub struct CorsConfig {
pub allow_credentials: bool,
pub allow_headers: Option<Vec<String>>,
Expand Down Expand Up @@ -38,19 +39,4 @@ impl CorsConfig {
}
}

impl Default for CorsConfig {
fn default() -> Self {
Self {
allow_origin: None,
allow_headers: None,
allow_credentials: false,
allow_methods: None,
embedder_policy: None,
expose_headers: None,
max_age: None,
opener_policy: None,
request_headers: None,
request_method: None,
}
}
}

0 comments on commit eda9dac

Please sign in to comment.