diff --git a/Cargo.lock b/Cargo.lock index 61667686..009a3301 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1962,18 +1962,28 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.219" +version = "1.0.223" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "a505d71960adde88e293da5cb5eda57093379f64e61cf77bf0e6a63af07a7bac" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.223" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f57cbd357666aa7b3ac84a90b4ea328f1d4ddb6772b430caa5d9e1309bb9e9" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.223" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "3d428d07faf17e306e699ec1e91996e5a165ba5d6bce5b5155173e91a8a01a56" dependencies = [ "proc-macro2", "quote", @@ -1993,14 +2003,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.143" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" +checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" dependencies = [ "itoa", "memchr", "ryu", "serde", + "serde_core", ] [[package]] diff --git a/dropshot/Cargo.toml b/dropshot/Cargo.toml index bcfb51c6..38da0c2a 100644 --- a/dropshot/Cargo.toml +++ b/dropshot/Cargo.toml @@ -33,7 +33,7 @@ rustls = "0.22.4" rustls-pemfile = "2.1.3" scopeguard = "1.2.0" semver = "1.0.26" -serde_json = "1.0.143" +serde_json = "1.0.145" serde_path_to_error = "0.1.17" serde_urlencoded = "0.7.1" sha1 = "0.10.6" diff --git a/dropshot/tests/fail/bad_channel4.stderr b/dropshot/tests/fail/bad_channel4.stderr index 053bd778..47da651c 100644 --- a/dropshot/tests/fail/bad_channel4.stderr +++ b/dropshot/tests/fail/bad_channel4.stderr @@ -20,15 +20,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel4.rs:22:14 | 22 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -38,7 +38,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -71,7 +71,7 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel4.rs:20:1 | 20 | / async fn bad_channel( @@ -79,11 +79,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 22 | | _params: Query, 23 | | _upgraded: WebsocketConnection, 24 | | ) -> dropshot::WebsocketChannelResult { - | |_____________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_____________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -93,7 +93,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -126,18 +126,18 @@ note: required by a bound in `dropshot::Query` | ^^^^^^^^^^ required by this bound in `Query` = note: this error originates in the attribute macro `channel` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel4.rs:16:1 | 16 | / #[channel { 17 | | protocol = WEBSOCKETS, 18 | | path = "/test", 19 | | }] - | |__^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -147,7 +147,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_channel5.stderr b/dropshot/tests/fail/bad_channel5.stderr index c18661ed..f0664720 100644 --- a/dropshot/tests/fail/bad_channel5.stderr +++ b/dropshot/tests/fail/bad_channel5.stderr @@ -1,12 +1,12 @@ -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel5.rs:24:14 | 24 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -16,14 +16,14 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel5.rs:22:1 | 22 | / async fn bad_channel( @@ -31,11 +31,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 24 | | _params: Query, 25 | | _upgraded: WebsocketConnection, 26 | | ) -> dropshot::WebsocketChannelResult { - | |_____________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_____________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -45,25 +45,25 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_channel5.rs:18:1 | 18 | / #[channel { 19 | | protocol = WEBSOCKETS, 20 | | path = "/test", 21 | | }] - | |__^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -73,7 +73,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_endpoint4.stderr b/dropshot/tests/fail/bad_endpoint4.stderr index e232b657..cab27d4b 100644 --- a/dropshot/tests/fail/bad_endpoint4.stderr +++ b/dropshot/tests/fail/bad_endpoint4.stderr @@ -20,15 +20,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint4.rs:23:14 | 23 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -38,7 +38,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -70,18 +70,18 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint4.rs:21:1 | 21 | / async fn bad_endpoint( 22 | | _rqctx: RequestContext<()>, 23 | | _params: Query, 24 | | ) -> Result, HttpError> { - | |__________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -91,7 +91,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -145,18 +145,18 @@ note: required by a bound in `dropshot::Query` | ^^^^^^^^^^ required by this bound in `Query` = note: this error originates in the attribute macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint4.rs:17:1 | 17 | / #[endpoint { 18 | | method = GET, 19 | | path = "/test", 20 | | }] - | |__^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -166,7 +166,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_endpoint5.stderr b/dropshot/tests/fail/bad_endpoint5.stderr index 72e2acc6..c8c348e5 100644 --- a/dropshot/tests/fail/bad_endpoint5.stderr +++ b/dropshot/tests/fail/bad_endpoint5.stderr @@ -1,12 +1,12 @@ -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint5.rs:25:14 | 25 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -16,25 +16,25 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint5.rs:23:1 | 23 | / async fn bad_endpoint( 24 | | _rqctx: RequestContext<()>, 25 | | _params: Query, 26 | | ) -> Result, HttpError> { - | |__________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -44,7 +44,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -72,18 +72,18 @@ note: required by a bound in `ApiEndpoint::::new` | HandlerType: HttpHandlerFunc, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiEndpoint::::new` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_endpoint5.rs:19:1 | 19 | / #[endpoint { 20 | | method = GET, 21 | | path = "/test", 22 | | }] - | |__^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |__^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -93,7 +93,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_endpoint7.stderr b/dropshot/tests/fail/bad_endpoint7.stderr index 786e9dc9..501ca5f7 100644 --- a/dropshot/tests/fail/bad_endpoint7.stderr +++ b/dropshot/tests/fail/bad_endpoint7.stderr @@ -8,9 +8,9 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n 26 | | x: "Oxide".to_string(), 27 | | y: 0x1de, 28 | | })) - | |_____^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | |_____^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -27,15 +27,15 @@ note: required by a bound in `HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_endpoint7.rs:25:5 | 25 | Ok(HttpResponseOk(Ret { - | ^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -52,18 +52,18 @@ note: required by a bound in `HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_endpoint7.rs:25:5 | 25 | / Ok(HttpResponseOk(Ret { 26 | | x: "Oxide".to_string(), 27 | | y: 0x1de, 28 | | })) - | |_______^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | |_______^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -80,17 +80,17 @@ note: required by a bound in `HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_endpoint7.rs:22:1 | 22 | / async fn bad_endpoint( 23 | | _rqctx: RequestContext<()>, 24 | | ) -> Result, HttpError> { - | |___________________________________________^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | |___________________________________________^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -107,15 +107,15 @@ note: required by a bound in `HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_endpoint7.rs:24:6 | 24 | ) -> Result, HttpError> { - | ^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^^^^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () diff --git a/dropshot/tests/fail/bad_trait_channel4.stderr b/dropshot/tests/fail/bad_trait_channel4.stderr index 44d39d67..4abdfa0b 100644 --- a/dropshot/tests/fail/bad_trait_channel4.stderr +++ b/dropshot/tests/fail/bad_trait_channel4.stderr @@ -20,15 +20,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:26:18 | 26 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -38,7 +38,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -71,7 +71,7 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:39:5 | 39 | / async fn bad_channel( @@ -79,11 +79,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 41 | | _params: Query, 42 | | _upgraded: WebsocketConnection, 43 | | ) -> dropshot::WebsocketChannelResult { - | |_________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -93,7 +93,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -126,7 +126,7 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:39:5 | 39 | / async fn bad_channel( @@ -134,11 +134,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 41 | | _params: Query, 42 | | _upgraded: WebsocketConnection, 43 | | ) -> dropshot::WebsocketChannelResult { - | |_________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -148,7 +148,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -177,15 +177,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:41:18 | 41 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -195,7 +195,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -225,15 +225,15 @@ note: required by a bound in `dropshot::Query` | ^^^^^^^^^^ required by this bound in `Query` = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:16:1 | 16 | #[dropshot::api_description] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -243,7 +243,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -273,15 +273,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel4.rs:20:5 | 20 | #[channel { - | ^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -291,7 +291,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_trait_channel5.stderr b/dropshot/tests/fail/bad_trait_channel5.stderr index 9ab87e57..8cd0adbe 100644 --- a/dropshot/tests/fail/bad_trait_channel5.stderr +++ b/dropshot/tests/fail/bad_trait_channel5.stderr @@ -1,12 +1,12 @@ -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:27:18 | 27 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -16,14 +16,14 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:39:5 | 39 | / async fn bad_channel( @@ -31,11 +31,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 41 | | _params: Query, 42 | | _upgraded: WebsocketConnection, 43 | | ) -> dropshot::WebsocketChannelResult { - | |_________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -45,14 +45,14 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:39:5 | 39 | / async fn bad_channel( @@ -60,11 +60,11 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> 41 | | _params: Query, 42 | | _upgraded: WebsocketConnection, 43 | | ) -> dropshot::WebsocketChannelResult { - | |_________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |_________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -74,22 +74,22 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:41:18 | 41 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -99,22 +99,22 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:17:1 | 17 | #[dropshot::api_description] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -124,7 +124,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -132,15 +132,15 @@ note: required by a bound in `dropshot::Query` | ^^^^^^^^^^^^^^^^ required by this bound in `Query` = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_channel5.rs:21:5 | 21 | #[channel { - | ^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -150,7 +150,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_trait_endpoint4.stderr b/dropshot/tests/fail/bad_trait_endpoint4.stderr index ff5f3e0d..380266e2 100644 --- a/dropshot/tests/fail/bad_trait_endpoint4.stderr +++ b/dropshot/tests/fail/bad_trait_endpoint4.stderr @@ -23,18 +23,18 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint4.rs:38:5 | 38 | / async fn bad_endpoint( 39 | | _rqctx: RequestContext<()>, 40 | | _params: Query, 41 | | ) -> Result { - | |________________________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |________________________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -44,7 +44,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -76,18 +76,18 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint4.rs:38:5 | 38 | / async fn bad_endpoint( 39 | | _rqctx: RequestContext<()>, 40 | | _params: Query, 41 | | ) -> Result { - | |________________________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |________________________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -97,7 +97,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -126,15 +126,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint4.rs:40:18 | 40 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -144,7 +144,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -173,15 +173,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint4.rs:27:18 | 27 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -191,7 +191,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | @@ -220,15 +220,15 @@ note: required by a bound in `dropshot::Query` | pub struct Query { | ^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint4.rs:21:5 | 21 | #[endpoint { - | ^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -238,7 +238,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_trait_endpoint5.stderr b/dropshot/tests/fail/bad_trait_endpoint5.stderr index 4b3b1486..889367ef 100644 --- a/dropshot/tests/fail/bad_trait_endpoint5.stderr +++ b/dropshot/tests/fail/bad_trait_endpoint5.stderr @@ -1,15 +1,15 @@ -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint5.rs:39:5 | 39 | / async fn bad_endpoint( 40 | | _rqctx: RequestContext<()>, 41 | | _params: Query, 42 | | ) -> Result { - | |________________________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |________________________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -19,25 +19,25 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint5.rs:39:5 | 39 | / async fn bad_endpoint( 40 | | _rqctx: RequestContext<()>, 41 | | _params: Query, 42 | | ) -> Result { - | |________________________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | |________________________________________________________^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -47,22 +47,22 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint5.rs:41:18 | 41 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -72,22 +72,22 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint5.rs:28:18 | 28 | _params: Query, - | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -97,22 +97,22 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | | pub struct Query { | ^^^^^^^^^^^^^^^^ required by this bound in `Query` -error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied +error[E0277]: the trait bound `QueryParams: serde::Deserialize<'de>` is not satisfied --> tests/fail/bad_trait_endpoint5.rs:22:5 | 22 | #[endpoint { - | ^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams` + | ^ the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented for `QueryParams` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::de::Deserialize<'de>`: + = help: the following other types implement trait `serde_core::de::Deserialize<'de>`: &'a [u8] &'a camino::Utf8Path &'a std::path::Path @@ -122,7 +122,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de> (T0, T1) (T0, T1, T2) and $N others - = note: required for `QueryParams` to implement `serde::de::DeserializeOwned` + = note: required for `QueryParams` to implement `serde_core::de::DeserializeOwned` note: required by a bound in `dropshot::Query` --> src/extractor/query.rs | diff --git a/dropshot/tests/fail/bad_trait_endpoint7.stderr b/dropshot/tests/fail/bad_trait_endpoint7.stderr index 799ab7eb..78f41377 100644 --- a/dropshot/tests/fail/bad_trait_endpoint7.stderr +++ b/dropshot/tests/fail/bad_trait_endpoint7.stderr @@ -2,11 +2,11 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n --> tests/fail/bad_trait_endpoint7.rs:41:27 | 41 | Ok(HttpResponseOk(Ret { x: "Oxide".to_string(), y: 0x1de })) - | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | | | required by a bound introduced by this call | - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -23,15 +23,15 @@ note: required by a bound in `dropshot::HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `dropshot::HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_trait_endpoint7.rs:41:9 | 41 | Ok(HttpResponseOk(Ret { x: "Oxide".to_string(), y: 0x1de })) - | ^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -48,15 +48,15 @@ note: required by a bound in `dropshot::HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_trait_endpoint7.rs:41:9 | 41 | Ok(HttpResponseOk(Ret { x: "Oxide".to_string(), y: 0x1de })) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -73,17 +73,17 @@ note: required by a bound in `dropshot::HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_trait_endpoint7.rs:38:5 | 38 | / async fn bad_endpoint( 39 | | _rqctx: RequestContext<()>, 40 | | ) -> Result, HttpError> { - | |_______________________________________________^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | |_______________________________________________^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -104,9 +104,9 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n --> tests/fail/bad_trait_endpoint7.rs:28:10 | 28 | ) -> Result, HttpError>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T () @@ -123,15 +123,15 @@ note: required by a bound in `dropshot::HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` -error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_trait_endpoint7.rs:28:10 | 28 | ) -> Result, HttpError>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde_core::ser::Serialize` is not implemented for `Ret` | = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type = note: for types from other crates check whether the crate offers a `serde` feature flag - = help: the following other types implement trait `serde::ser::Serialize`: + = help: the following other types implement trait `serde_core::ser::Serialize`: &'a T &'a mut T ()