Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skywhale committed Apr 18, 2024
1 parent 74123b7 commit d995854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn rename_cidr(
) -> Result<Option<(CidrContents, String)>, Error> {
let old_cidr = if let Some(ref name) = args.name {
cidrs
.into_iter()
.iter()
.find(|c| &c.name == name)
.ok_or_else(|| anyhow!("CIDR '{}' does not exist", name))?
.clone()
Expand Down

0 comments on commit d995854

Please sign in to comment.