Lots of clippy appeasement

This commit is contained in:
Lennart
2025-10-27 20:12:21 +01:00
parent 0d071d3b92
commit 86cf490fa9
84 changed files with 413 additions and 435 deletions

View File

@@ -32,17 +32,20 @@ pub struct Calendar {
}
impl Calendar {
#[must_use] pub fn format_synctoken(&self) -> String {
#[must_use]
pub fn format_synctoken(&self) -> String {
format_synctoken(self.synctoken)
}
#[must_use] pub fn get_timezone(&self) -> Option<chrono_tz::Tz> {
#[must_use]
pub fn get_timezone(&self) -> Option<chrono_tz::Tz> {
self.timezone_id
.as_ref()
.and_then(|tzid| chrono_tz::Tz::from_str(tzid).ok())
}
#[must_use] pub fn get_vtimezone(&self) -> Option<&'static str> {
#[must_use]
pub fn get_vtimezone(&self) -> Option<&'static str> {
self.timezone_id
.as_ref()
.and_then(|tzid| vtimezones_rs::VTIMEZONES.get(tzid).copied())