mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
Fix lint warnings (#1267)
This commit is contained in:
@@ -187,7 +187,7 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
T::deserialize(de::PathDeserializer::new(&*params))
|
||||
T::deserialize(de::PathDeserializer::new(params))
|
||||
.map_err(|err| {
|
||||
PathRejection::FailedToDeserializePathParams(FailedToDeserializePathParams(err))
|
||||
})
|
||||
@@ -260,7 +260,7 @@ impl std::error::Error for PathDeserializationError {}
|
||||
///
|
||||
/// This type is obtained through [`FailedToDeserializePathParams::into_kind`] and is useful for building
|
||||
/// more precise error messages.
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
#[non_exhaustive]
|
||||
pub enum ErrorKind {
|
||||
/// The URI contained the wrong number of parameters.
|
||||
|
||||
@@ -247,7 +247,6 @@ mod tests {
|
||||
let res = client.post("/").body(r#"{ "foo": "bar" }"#).send().await;
|
||||
|
||||
let status = res.status();
|
||||
dbg!(res.text().await);
|
||||
|
||||
assert_eq!(status, StatusCode::UNSUPPORTED_MEDIA_TYPE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user