diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-08-04 00:27:41 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-08-23 19:15:13 +0200 |
commit | 75fb008711f0f80028230018ab37b988175211b4 (patch) | |
tree | b8b950cbed6152f4812f0943125ba6dd8647de93 /openpgp/src/packet/pkesk.rs | |
parent | 4c6974c62591ef6698447712311edebca9546e5f (diff) |
openpgp: Rename SubkeyBinding to KeyBinding.
- Also rename the `subkey` method to `key`.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs index c92fafe1..cb05425a 100644 --- a/openpgp/src/packet/pkesk.rs +++ b/openpgp/src/packet/pkesk.rs @@ -224,7 +224,7 @@ mod tests { crate::tests::message("encrypted-to-testy.gpg")).unwrap(); let mut keypair = tpk.subkeys().next().unwrap() - .subkey().clone().into_keypair().unwrap(); + .key().clone().into_keypair().unwrap(); let pkg = pile.descendants().skip(0).next().clone(); @@ -245,7 +245,7 @@ mod tests { crate::tests::message("encrypted-to-testy-new.pgp")).unwrap(); let mut keypair = tpk.subkeys().next().unwrap() - .subkey().clone().into_keypair().unwrap(); + .key().clone().into_keypair().unwrap(); let pkg = pile.descendants().skip(0).next().clone(); @@ -266,7 +266,7 @@ mod tests { crate::tests::message("encrypted-to-testy-nistp256.pgp")).unwrap(); let mut keypair = tpk.subkeys().next().unwrap() - .subkey().clone().into_keypair().unwrap(); + .key().clone().into_keypair().unwrap(); let pkg = pile.descendants().skip(0).next().clone(); @@ -287,7 +287,7 @@ mod tests { crate::tests::message("encrypted-to-testy-nistp384.pgp")).unwrap(); let mut keypair = tpk.subkeys().next().unwrap() - .subkey().clone().into_keypair().unwrap(); + .key().clone().into_keypair().unwrap(); let pkg = pile.descendants().skip(0).next().clone(); @@ -308,7 +308,7 @@ mod tests { crate::tests::message("encrypted-to-testy-nistp521.pgp")).unwrap(); let mut keypair = tpk.subkeys().next().unwrap() - .subkey().clone().into_keypair().unwrap(); + .key().clone().into_keypair().unwrap(); let pkg = pile.descendants().skip(0).next().clone(); |