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");