Unverified Commit 7018fd6c authored by Nugine's avatar Nugine
Browse files

s3s: fix lints

parent 43aa13bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ fn xml_payload<T: xml::Serialize>(val: &T) -> Bytes {
    {
        let mut ser = xml::Serializer::new(&mut buf);
        ser.decl()
            .and_then(|_| val.serialize(&mut ser))
            .and_then(|()| val.serialize(&mut ser))
            .expect("infallible serialization");
    }
    buf.into()
+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ mod tests {
            let output = Range::parse(input);
            match expected {
                Ok(expected) => assert_eq!(output.unwrap(), *expected),
                Err(_) => assert!(output.is_err()),
                Err(()) => assert!(output.is_err()),
            }
        }
    }
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ pub fn set_xml_body<T: xml::Serialize>(res: &mut Response, val: &T) -> S3Result
    {
        let mut ser = xml::Serializer::new(&mut buf);
        ser.decl()
            .and_then(|_| val.serialize(&mut ser))
            .and_then(|()| val.serialize(&mut ser))
            .map_err(S3Error::internal_error)?;
    }
    res.body = Body::from(buf);