summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/s2k.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-07-21 12:47:32 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-07-21 12:47:32 +0200
commit8cc0d7b85f979276157d5b51c6ee54d404c57d7b (patch)
treecb26677f524d711bf3ad44684c1d74ce6d1bbc68 /openpgp/src/crypto/s2k.rs
parent14432de9be3fec6f54496f1e1720d961d636e0b1 (diff)
openpgp: Remove PacketParserResult::is_none.
- There is no variant called `None`, so having this predicate seems wrong. - See #489.
Diffstat (limited to 'openpgp/src/crypto/s2k.rs')
-rw-r--r--openpgp/src/crypto/s2k.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/s2k.rs b/openpgp/src/crypto/s2k.rs
index d5553ce4..c09fe75c 100644
--- a/openpgp/src/crypto/s2k.rs
+++ b/openpgp/src/crypto/s2k.rs
@@ -419,7 +419,7 @@ mod tests {
// Get the next packet.
let (_, ppr) = pp.next().unwrap();
- assert!(ppr.is_none());
+ assert!(ppr.is_eof());
}
}