From 45ad89b06a53d46598d2cd7d2eb01fb2f94fb1e4 Mon Sep 17 00:00:00 2001 From: Ty Date: Wed, 2 Aug 2023 18:20:29 -0600 Subject: [PATCH] Fix clippy warning Iterator::nth(0) is the same as Iterator::next() always --- src/commands/keys/import_gpg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/keys/import_gpg.rs b/src/commands/keys/import_gpg.rs index 805fbae..12c8c05 100644 --- a/src/commands/keys/import_gpg.rs +++ b/src/commands/keys/import_gpg.rs @@ -101,7 +101,7 @@ impl AspmSubcommand for KeysImportGpgCommand { )?; let mut parsed = pgp::from_bytes_many(data.as_slice()); - let parsed = parsed.nth(0).context("Invalid GPG data")?; + let parsed = parsed.next().context("Invalid GPG data")?; let Ok(key) = parsed else { bail!("GPG data was unable to be parsed");