mirror of
https://codeberg.org/tyy/aspm
synced 2024-12-22 20:39:29 -07:00
Fix clippy warning
Iterator::nth(0) is the same as Iterator::next() always
This commit is contained in:
parent
5d982897a2
commit
45ad89b06a
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue