diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 14:42:03 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 15:06:05 +0100 |
commit | 23110e2844a19ffdd1d5c1699cb868f93f734ccc (patch) | |
tree | e2a234c3eb522a714bc3ae3c77d2cf3a897829fb /openpgp-ffi/src | |
parent | a2c3613b726665919c8a19b4b11329c9155a6a5f (diff) |
openpgp, openpgp-ffi, ipc: Add missing dyn.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/policy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/policy.rs b/openpgp-ffi/src/policy.rs index 2c00ae52..dec5dfa0 100644 --- a/openpgp-ffi/src/policy.rs +++ b/openpgp-ffi/src/policy.rs @@ -18,7 +18,7 @@ use self::openpgp::policy; #[crate::ffi_wrapper_type( prefix = "pgp_", derive = "Clone, Debug")] -pub struct Policy(Box<policy::Policy>); +pub struct Policy(Box<dyn policy::Policy>); /// A StandardPolicy object. #[crate::ffi_wrapper_type( @@ -31,6 +31,6 @@ pub struct StandardPolicy(policy::StandardPolicy); pub extern "C" fn pgp_standard_policy() -> *mut Policy { - let p : Box<policy::Policy> = Box::new(policy::StandardPolicy::new()); + let p : Box<dyn policy::Policy> = Box::new(policy::StandardPolicy::new()); p.move_into_raw() } |