diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-08-19 11:31:42 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-08-19 11:58:47 +0200 |
commit | 935734bf148efcaa69496bfe41c6f53907c5066f (patch) | |
tree | 39c6d082acfb7f62d28079df7a6bd59bc56d55c2 /openpgp/src/types/timestamp.rs | |
parent | ee55b20057fbcc2b77bb5c51f4915f9f785b200b (diff) |
openpgp: Rename SubpacketArea::lookup to SubpacketArea::subpacket.
- Make `SubpacketArea::lookup`'s name more consistent with
`SubpacketArea::subpackets`, `SubpacketAreas::subpacket`, and
`SubpacketAreas::subpackets`.
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r-- | openpgp/src/types/timestamp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 95cfbfe8..8114df53 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -47,7 +47,7 @@ use crate::{ /// let subkey = cert.keys().subkeys().next().unwrap(); /// let packets = subkey.bundle().self_signatures()[0].hashed_area(); /// -/// match packets.lookup(SubpacketTag::SignatureCreationTime).unwrap().value() { +/// match packets.subpacket(SubpacketTag::SignatureCreationTime).unwrap().value() { /// SubpacketValue::SignatureCreationTime(ts) => assert!(u32::from(*ts) > 0), /// v => panic!("Unexpected subpacket: {:?}", v), /// } |