Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Oct 31, 2023
1 parent 0aa56f1 commit f642ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bitwarden/src/secrets_manager/projects/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub(crate) async fn create_project(
.ok_or(Error::VaultLocked)?;

let project = Some(ProjectCreateRequestModel {
name: input.name.clone().encrypt_with_key(&key)?.to_string(),
name: input.name.clone().encrypt_with_key(key)?.to_string(),
});

let config = client.get_api_configurations().await;
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden/src/secrets_manager/projects/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub(crate) async fn update_project(
.ok_or(Error::VaultLocked)?;

let project = Some(ProjectUpdateRequestModel {
name: input.name.clone().encrypt_with_key(&key)?.to_string(),
name: input.name.clone().encrypt_with_key(key)?.to_string(),
});

let config = client.get_api_configurations().await;
Expand Down

0 comments on commit f642ee7

Please sign in to comment.