diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-01 15:43:48 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-03 14:22:46 +0200 |
commit | a3e3ab4d03a25c576961d20fa42c494280114be3 (patch) | |
tree | fbee1ae6cc6736f89df3ff41d15adb27502c089a /ipc/src | |
parent | ad582b769fe2a8ce2bfc278f2304e4266f131afb (diff) |
openpgp: Convert `Sexp::from_ciphertext` to `TryFrom<&mpis::Ciphertext>`
Diffstat (limited to 'ipc/src')
-rw-r--r-- | ipc/src/gnupg.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/src/gnupg.rs b/ipc/src/gnupg.rs index 408df3cf..7220b7f0 100644 --- a/ipc/src/gnupg.rs +++ b/ipc/src/gnupg.rs @@ -3,6 +3,7 @@ #![warn(missing_docs)] use std::collections::BTreeMap; +use std::convert::TryFrom; use std::ops::{Deref, DerefMut}; use std::path::{Path, PathBuf}; use std::process::Command; @@ -630,7 +631,7 @@ impl<'a, 'b, 'c, R> Future for DecryptionRequest<'a, 'b, 'c, R> }, Async::Ready(None) => { let mut buf = Vec::new(); - Sexp::from_ciphertext(&self.ciphertext)? + Sexp::try_from(self.ciphertext)? .serialize(&mut buf)?; self.c.data(&buf)?; self.state = Inquire(Vec::new(), true); |