diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 16:50:23 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 16:50:23 +0100 |
commit | 277ca54a1cd08fe7366a29f5ee635048f95cbe31 (patch) | |
tree | 69ac7bb7269278105941f27848581cd649dadcc9 /openpgp/src/autocrypt.rs | |
parent | fe5a468195477ffa2b70ca81349d08f591a7886a (diff) |
openpgp: Rename `UserID::userid()` to `value()`.
- Fixes #224.
Diffstat (limited to 'openpgp/src/autocrypt.rs')
-rw-r--r-- | openpgp/src/autocrypt.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/autocrypt.rs b/openpgp/src/autocrypt.rs index 0faa1df7..035eb58a 100644 --- a/openpgp/src/autocrypt.rs +++ b/openpgp/src/autocrypt.rs @@ -849,7 +849,7 @@ In the light of the Efail vulnerability I am asking myself if it's assert_eq!(tpk.primary().fingerprint(), Fingerprint::from_hex( &"156962B0F3115069ACA970C68E3B03A279B772D6"[..]).unwrap()); - assert_eq!(tpk.userids().next().unwrap().userid().userid(), + assert_eq!(tpk.userids().next().unwrap().userid().value(), &b"holger krekel <holger@merlinux.eu>"[..]); @@ -872,7 +872,7 @@ In the light of the Efail vulnerability I am asking myself if it's assert_eq!(tpk.primary().fingerprint(), Fingerprint::from_hex( &"D4AB192964F76A7F8F8A9B357BD18320DEADFA11"[..]).unwrap()); - assert_eq!(tpk.userids().next().unwrap().userid().userid(), + assert_eq!(tpk.userids().next().unwrap().userid().value(), &b"Vincent Breitmoser <look@my.amazin.horse>"[..]); @@ -895,7 +895,7 @@ In the light of the Efail vulnerability I am asking myself if it's assert_eq!(tpk.primary().fingerprint(), Fingerprint::from_hex( &"4F9F89F5505AC1D1A260631CDB1187B9DD5F693B"[..]).unwrap()); - assert_eq!(tpk.userids().next().unwrap().userid().userid(), + assert_eq!(tpk.userids().next().unwrap().userid().value(), &b"Patrick Brunschwig <patrick@enigmail.net>"[..]); let ac2 = AutocryptHeaders::from_bytes(&PATRICK_UNFOLDED[..]).unwrap(); |