summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:42:03 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-06 15:06:05 +0100
commit23110e2844a19ffdd1d5c1699cb868f93f734ccc (patch)
treee2a234c3eb522a714bc3ae3c77d2cf3a897829fb /openpgp
parenta2c3613b726665919c8a19b4b11329c9155a6a5f (diff)
openpgp, openpgp-ffi, ipc: Add missing dyn.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/examples/generate-encrypt-decrypt.rs2
-rw-r--r--openpgp/src/parse/stream.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/examples/generate-encrypt-decrypt.rs b/openpgp/examples/generate-encrypt-decrypt.rs
index 8258aaf4..089ed8e7 100644
--- a/openpgp/examples/generate-encrypt-decrypt.rs
+++ b/openpgp/examples/generate-encrypt-decrypt.rs
@@ -99,7 +99,7 @@ fn decrypt(p: &dyn Policy,
struct Helper<'a> {
secret: &'a openpgp::Cert,
- policy: &'a Policy,
+ policy: &'a dyn Policy,
}
impl<'a> VerificationHelper for Helper<'a> {
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index 08717d7b..a1931c15 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -543,7 +543,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> {
///
/// Signature verifications are done relative to time `t`, or the
/// current time, if `t` is `None`.
- pub fn from_reader<R, T>(policy: &'a Policy, reader: R, helper: H, t: T)
+ pub fn from_reader<R, T>(policy: &'a dyn Policy, reader: R, helper: H, t: T)
-> Result<Verifier<'a, H>>
where R: io::Read + 'a, T: Into<Option<time::SystemTime>>
{
@@ -560,7 +560,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> {
///
/// Signature verifications are done relative to time `t`, or the
/// current time, if `t` is `None`.
- pub fn from_file<P, T>(policy: &'a Policy, path: P, helper: H, t: T)
+ pub fn from_file<P, T>(policy: &'a dyn Policy, path: P, helper: H, t: T)
-> Result<Verifier<'a, H>>
where P: AsRef<Path>,
T: Into<Option<time::SystemTime>>