mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
clippy appeasement
This commit is contained in:
@@ -201,10 +201,7 @@ impl Resource for CalendarResource {
|
|||||||
if let Some(tzid) = &timezone_id {
|
if let Some(tzid) = &timezone_id {
|
||||||
// Validate timezone id
|
// Validate timezone id
|
||||||
chrono_tz::Tz::from_str(tzid).map_err(|_| {
|
chrono_tz::Tz::from_str(tzid).map_err(|_| {
|
||||||
rustical_dav::Error::BadRequest(format!(
|
rustical_dav::Error::BadRequest(format!("Invalid timezone-id: {tzid}"))
|
||||||
"Invalid timezone-id: {}",
|
|
||||||
tzid
|
|
||||||
))
|
|
||||||
})?;
|
})?;
|
||||||
// TODO: Ensure that timezone is also updated (For now hope that clients play nice)
|
// TODO: Ensure that timezone is also updated (For now hope that clients play nice)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user