Zero-copy deserialization of Sieve scripts and reports + Bump multiple dependencies to their latest versions

This commit is contained in:
mdecimus
2025-05-11 16:56:55 +02:00
parent 095c501a66
commit 7ec5701af8
112 changed files with 1109 additions and 1816 deletions

View File

@@ -618,15 +618,12 @@ fn find_components<'x>(
comp: &[ICalendarComponentType],
) -> impl Iterator<Item = (usize, &'x ArchivedICalendarComponent)> {
// TODO: Properly expand the component type path
let comp = comp
.last()
.copied()
.unwrap_or(ICalendarComponentType::VCalendar);
let comp = comp.last().unwrap_or(&ICalendarComponentType::VCalendar);
ical.components
.iter()
.enumerate()
.filter(move |(_, entry)| {
comp == ICalendarComponentType::VCalendar || entry.component_type == comp
comp == &ICalendarComponentType::VCalendar || &entry.component_type == comp
})
}

View File

@@ -550,7 +550,7 @@ impl DavRequestHandler for Server {
//let c = println!("------------------------------------------");
let std_body = std::str::from_utf8(&body).unwrap_or("[binary]").to_string();
//let std_body = std::str::from_utf8(&body).unwrap_or("[binary]").to_string();
// Parse headers
let mut headers = RequestHeaders::new(request.uri().path());