xml: Fix writer type

This commit is contained in:
Lennart
2025-07-02 23:31:04 +02:00
parent d8e4bd1cc4
commit 26306fd661
9 changed files with 15 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ pub enum Precondition {
impl IntoResponse for Precondition {
fn into_response(self) -> axum::response::Response {
let mut output: Vec<_> = b"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n".into();
let mut writer = quick_xml::Writer::new_with_indent(output.as_mut_slice(), b' ', 4);
let mut writer = quick_xml::Writer::new_with_indent(&mut output, b' ', 4);
let error = rustical_dav::xml::ErrorElement(&self);
if let Err(err) = error.serialize_root(&mut writer) {