diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-29 15:19:02 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 10:47:56 +0100 |
commit | 0266273998d5ebf74e07291225fc6b50d33bdbc9 (patch) | |
tree | d570842ddeffca8ee67a181d189049bdcc14b105 /openpgp/src/serialize/stream.rs | |
parent | 80f4dab8a7c55102a9fd41d167add3d7c1193a31 (diff) |
openpgp: Use Timestamp in packet::Literal.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index a8e63a72..9137dd96 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -586,7 +586,7 @@ impl<'a> LiteralWriter<'a> { /// Sets the data format. pub fn date(mut self, timestamp: time::SystemTime) -> Result<Self> { - self.template.set_date(Some(timestamp)); + self.template.set_date(Some(timestamp))?; Ok(self) } |