diff --git a/server/main-api/src/calendar/models.rs b/server/main-api/src/calendar/models.rs index 157d6ca6b..f4c32f719 100644 --- a/server/main-api/src/calendar/models.rs +++ b/server/main-api/src/calendar/models.rs @@ -100,7 +100,9 @@ pub enum EventType { impl Display for EventType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let str = serde_json::to_string(self).map_err(|_| std::fmt::Error)?; - f.write_str(&str) + let mut str = serde_json::to_string(self).map_err(|_| std::fmt::Error)?; + let _ = str.remove(0); + let _ = str.remove(str.len() - 1); + write!(f, "{str}") } }