Zero-copy deserialization of Sieve scripts and reports + Bump multiple dependencies to their latest versions
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user