1
0
Fork 0
mirror of https://codeberg.org/tyy/aspm synced 2024-12-22 15:59:29 -07:00

Fix clippy warning

Iterator::nth(0) is the same as Iterator::next() always
This commit is contained in:
Tyler Beckman 2023-08-02 18:20:29 -06:00
parent 5d982897a2
commit 45ad89b06a
Signed by: Ty
GPG key ID: 2813440C772555A4

View file

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