summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-02-20 22:18:44 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-02-20 22:18:44 +0100
commitb9f68d38710e7537a3f951313d40015e3e1f4183 (patch)
tree83b3841821cd094b3ba689f098a8d6089bd78bf1
parenta57262d26636590eaec123d7b60b9efdd604a61e (diff)
openpgp: Have ComponentAmalgamation deref to its bundle.
- Instead of dereffing directly to the component (`C`), change `ComponentAmalgamation` to deref to its bundle (a `ComponentBundle<C>`), which already derefs to the containing component.
-rw-r--r--openpgp/src/cert/amalgamation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index 9b7d0f1e..90085c17 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -24,10 +24,10 @@ pub struct ComponentAmalgamation<'a, C>{
}
impl<'a, C> std::ops::Deref for ComponentAmalgamation<'a, C> {
- type Target = C;
+ type Target = ComponentBundle<C>;
fn deref(&self) -> &Self::Target {
- self.bundle.component()
+ self.bundle
}
}