Skip to content

Commit

Permalink
fix: minor clippy error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Oct 21, 2024
1 parent 18800b7 commit a987b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl ExecutorFactory<HttpState<HttpsConnector<HttpConnector>, SecretImpl>> for C
for (k, v) in app.env.iter() {
dictionary.insert(k.to_string(), v.to_string());
}
let mut secret_impl = SecretImpl::new();
let mut secret_impl = SecretImpl::default();
for s in app.secrets.iter() {
if let Some(value) = s.secret_values.first() {
secret_impl.insert(s.name.to_string(), value.value.to_string());
Expand Down
18 changes: 1 addition & 17 deletions src/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use secret::SecretStrategy;
use std::collections::HashMap;
use std::ops::{Deref, DerefMut};

#[derive(Clone)]
#[derive(Clone, Default)]
pub struct SecretImpl {
inner: HashMap<String, String>,
}
Expand All @@ -13,22 +13,6 @@ impl SecretStrategy for SecretImpl {
}
}

impl Default for SecretImpl {
fn default() -> Self {
Self {
inner: Default::default(),
}
}
}

impl SecretImpl {
pub fn new() -> Self {
Self {
inner: Default::default(),
}
}
}

impl Deref for SecretImpl {
type Target = HashMap<String, String>;

Expand Down

0 comments on commit a987b54

Please sign in to comment.