summaryrefslogtreecommitdiffstats
path: root/openpgp/src
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/src
parenta2c3613b726665919c8a19b4b11329c9155a6a5f (diff)
openpgp, openpgp-ffi, ipc: Add missing dyn.
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/parse/stream.rs4
1 files changed, 2 insertions, 2 deletions
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>>