mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 03:32:15 +00:00
run clippy fix
This commit is contained in:
@@ -32,19 +32,19 @@ pub struct Calendar {
|
||||
}
|
||||
|
||||
impl Calendar {
|
||||
pub fn format_synctoken(&self) -> String {
|
||||
#[must_use] pub fn format_synctoken(&self) -> String {
|
||||
format_synctoken(self.synctoken)
|
||||
}
|
||||
|
||||
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())
|
||||
}
|
||||
|
||||
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).cloned())
|
||||
.and_then(|tzid| vtimezones_rs::VTIMEZONES.get(tzid).copied())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user