summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-29 15:19:02 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-03 10:47:56 +0100
commit0266273998d5ebf74e07291225fc6b50d33bdbc9 (patch)
treed570842ddeffca8ee67a181d189049bdcc14b105 /openpgp/src/serialize/stream.rs
parent80f4dab8a7c55102a9fd41d167add3d7c1193a31 (diff)
openpgp: Use Timestamp in packet::Literal.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs2
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)
}