mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Fix CI (#2086)
- Use exactly version 1.0.0-rc.3 of hyper - Update expected output of UI tests - Fix clippy lints Signed-off-by: hi-rustin <[email protected]>
This commit is contained in:
@@ -215,7 +215,7 @@ mod tests {
|
|||||||
let res = client
|
let res = client
|
||||||
.post("/")
|
.post("/")
|
||||||
.body(
|
.body(
|
||||||
vec![
|
[
|
||||||
"{\"id\":1}",
|
"{\"id\":1}",
|
||||||
"{\"id\":2}",
|
"{\"id\":2}",
|
||||||
"{\"id\":3}",
|
"{\"id\":3}",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `for<'de> MyPath: serde::de::Deserialize<'de>` is
|
|||||||
(T0, T1)
|
(T0, T1)
|
||||||
(T0, T1, T2)
|
(T0, T1, T2)
|
||||||
(T0, T1, T2, T3)
|
(T0, T1, T2, T3)
|
||||||
and 129 others
|
and $N others
|
||||||
= note: required for `MyPath` to implement `serde::de::DeserializeOwned`
|
= note: required for `MyPath` to implement `serde::de::DeserializeOwned`
|
||||||
= note: required for `axum::extract::Path<MyPath>` to implement `FromRequestParts<S>`
|
= note: required for `axum::extract::Path<MyPath>` to implement `FromRequestParts<S>`
|
||||||
= note: this error originates in the derive macro `TypedPath` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the derive macro `TypedPath` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ tower-layer = "0.3.2"
|
|||||||
tower-service = "0.3"
|
tower-service = "0.3"
|
||||||
|
|
||||||
# wont need this when axum uses http-body 1.0
|
# wont need this when axum uses http-body 1.0
|
||||||
hyper1 = { package = "hyper", version = "1.0.0-rc.3", features = ["server", "http1"] }
|
hyper1 = { package = "hyper", version = "=1.0.0-rc.3", features = ["server", "http1"] }
|
||||||
tower-hyper-http-body-compat = { version = "0.1.4", features = ["server", "http1"] }
|
tower-hyper-http-body-compat = { version = "0.1.4", features = ["server", "http1"] }
|
||||||
|
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ pub(crate) fn set_matched_path_for_request(
|
|||||||
|
|
||||||
if matched_path.ends_with(NEST_TAIL_PARAM_CAPTURE) {
|
if matched_path.ends_with(NEST_TAIL_PARAM_CAPTURE) {
|
||||||
extensions.insert(MatchedNestedPath(matched_path));
|
extensions.insert(MatchedNestedPath(matched_path));
|
||||||
debug_assert!(matches!(extensions.remove::<MatchedPath>(), None));
|
debug_assert!(extensions.remove::<MatchedPath>().is_none());
|
||||||
} else {
|
} else {
|
||||||
extensions.insert(MatchedPath(matched_path));
|
extensions.insert(MatchedPath(matched_path));
|
||||||
extensions.remove::<MatchedNestedPath>();
|
extensions.remove::<MatchedNestedPath>();
|
||||||
|
|||||||
Reference in New Issue
Block a user