diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 20:35:38 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 73b3321d98e0298dba5d4ef63e8058a01cc2943c (patch) | |
tree | 0b5ef2427f8d95085c2819c8e9dba02c3c6f0c65 /openpgp/src/parse.rs | |
parent | 19169b76117db8b1d81f1aafa64a5440d042803d (diff) |
Lint: Use next instead of nth(0).
- https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r-- | openpgp/src/parse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 8c658746..4a91d7b2 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -6052,8 +6052,7 @@ mod test { let cert: Cert = Cert::from_bytes(crate::tests::key("testy-new-private.pgp"))?; let signing_keypair = cert.keys().secret() - .with_policy(p, None).alive().revoked(false).for_signing() - .nth(0).unwrap() + .with_policy(p, None).alive().revoked(false).for_signing().next().unwrap() .key().clone().into_keypair()?; let mut signature = vec![]; { |