diff --git a/crates/ical/src/timestamp.rs b/crates/ical/src/timestamp.rs index f23a57b..e2d9f4d 100644 --- a/crates/ical/src/timestamp.rs +++ b/crates/ical/src/timestamp.rs @@ -208,7 +208,7 @@ impl CalDateTime { matches!(&self, Self::Date(_, _)) } - pub fn as_datetime(&self) -> Cow> { + pub fn as_datetime(&self) -> Cow<'_, DateTime> { match self { Self::DateTime(datetime) => Cow::Borrowed(datetime), Self::Date(date, tz) => Cow::Owned(