diff options
Diffstat (limited to 'openpgp/examples/encrypt-for.rs')
-rw-r--r-- | openpgp/examples/encrypt-for.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs index 359101ca..e1b580ef 100644 --- a/openpgp/examples/encrypt-for.rs +++ b/openpgp/examples/encrypt-for.rs @@ -24,8 +24,8 @@ fn main() { } let mode = match args[1].as_ref() { - "at-rest" => KeyFlags::default().set_storage_encryption(true), - "for-transport" => KeyFlags::default().set_transport_encryption(true), + "at-rest" => KeyFlags::default().set_storage_encryption(), + "for-transport" => KeyFlags::default().set_transport_encryption(), x => panic!("invalid mode: {:?}, \ must be either 'at-rest' or 'for-transport'", x), |