summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 2196f9d7..37cd17df 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -622,9 +622,9 @@ impl<'a> LiteralWriter<'a> {
}
/// Sets the data format.
- pub fn date(mut self, timestamp: SystemTime) -> Result<Self>
+ pub fn date<T: Into<SystemTime>>(mut self, timestamp: T) -> Result<Self>
{
- self.template.set_date(Some(timestamp))?;
+ self.template.set_date(Some(timestamp.into()))?;
Ok(self)
}