Skip to content

Commit

Permalink
Update crates/bws/src/command/run.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Oscar Hinton <[email protected]>
  • Loading branch information
tangowithfoxtrot and Hinton authored Jul 16, 2024
1 parent e86aa2e commit b86d026
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/bws/src/command/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ pub(crate) async fn run(
.data;

if !uuids_as_keynames {
let mut seen = HashSet::new();
if let Some(s) = secrets.iter().find(|s| !seen.insert(&s.key)) {
bail!("Multiple secrets with name: '{}'. Use --uuids-as-keynames or use unique names for secrets", s.key);
if let Some(duplicate) = secrets.iter().map(|s| &s.key).duplicates().next() {

Check failure

Code scanning / clippy

no method named duplicates found for struct Map in the current scope Error

no method named duplicates found for struct Map in the current scope
bail!("Multiple secrets with name: '{}'. Use --uuids-as-keynames or use unique names for secrets", duplicate);
}
}

Expand Down

0 comments on commit b86d026

Please sign in to comment.