mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
clippy appeasement
This commit is contained in:
@@ -208,7 +208,7 @@ impl CalDateTime {
|
||||
matches!(&self, Self::Date(_, _))
|
||||
}
|
||||
|
||||
pub fn as_datetime(&self) -> Cow<DateTime<CalTimezone>> {
|
||||
pub fn as_datetime(&self) -> Cow<'_, DateTime<CalTimezone>> {
|
||||
match self {
|
||||
Self::DateTime(datetime) => Cow::Borrowed(datetime),
|
||||
Self::Date(date, tz) => Cow::Owned(
|
||||
|
||||
Reference in New Issue
Block a user