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