diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-14 14:08:07 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-18 09:44:45 +0100 |
commit | 9a5500b674147c1902899e941d90d2232fd6a7bf (patch) | |
tree | 3b0ac4a1571ecdd2dffd1ccb50a196c5d70c4214 | |
parent | aa9621b29ea345b8013eca4e567eb0cdc9cc93b1 (diff) |
openpgp: Change KeyAmalgamation to Deref to a KeyBundle.
- Instead of having a `KeyAmalgamation` deref to a `Key`, have it
deref to `KeyBundle`, which in turn derefs to a `Key`.
-rw-r--r-- | openpgp/src/cert/key_amalgamation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/key_amalgamation.rs b/openpgp/src/cert/key_amalgamation.rs index de1168e2..b640365f 100644 --- a/openpgp/src/cert/key_amalgamation.rs +++ b/openpgp/src/cert/key_amalgamation.rs @@ -39,10 +39,10 @@ pub struct KeyAmalgamation<'a, P: key::KeyParts> { } impl<'a, P: key::KeyParts> Deref for KeyAmalgamation<'a, P> { - type Target = Key<P, key::UnspecifiedRole>; + type Target = KeyBundle<P, key::UnspecifiedRole>; fn deref(&self) -> &Self::Target { - self.key() + self.bundle() } } |