summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index fb74c2c8..0d2d3dcf 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -273,11 +273,11 @@ impl<C> DerefMut for ComponentBundles<C>
}
}
-impl<C> Into<Vec<ComponentBundle<C>>> for ComponentBundles<C>
+impl<C> From<ComponentBundles<C>> for Vec<ComponentBundle<C>>
where ComponentBundle<C>: cmp::PartialEq
{
- fn into(self) -> Vec<ComponentBundle<C>> {
- self.bundles
+ fn from(cb: ComponentBundles<C>) -> Vec<ComponentBundle<C>> {
+ cb.bundles
}
}