Skip to content

Commit

Permalink
update clippy and trybuild to Rust 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Feb 8, 2025
1 parent 9d95539 commit e49ad2f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.82"
toolchain: "1.84"
id: rust-toolchain
- uses: actions/cache@v4
with:
Expand All @@ -109,7 +109,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.78"
toolchain: "1.84"
components: clippy
id: rust-toolchain
- uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/endpoint/auth_data_non_clone.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0277]: the trait bound `AuthData: Clone` is not satisfied
--> tests/ui/endpoint/auth_data_non_clone.rs:15:25
|
15 | async fn read_all(auth: AuthStatus<AuthData>) -> Result<NoContent, AuthError> {
| ^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `AuthData`, which is required by `gotham_restful::AuthStatus<AuthData>: Clone`
| ^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `AuthData`
|
= note: required for `gotham_restful::AuthStatus<AuthData>` to implement `Clone`
note: required by a bound in `clone_from_state`
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/endpoint/invalid_body_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0277]: the trait bound `FooBody: OpenapiType` is not satisfied
--> tests/ui/endpoint/invalid_body_ty.rs:15:16
|
15 | fn endpoint(_: FooBody) {
| ^^^^^^^ the trait `OpenapiType` is not implemented for `FooBody`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Body: RequestBody`
| ^^^^^^^ the trait `OpenapiType` is not implemented for `FooBody`
|
= help: the following other types implement trait `OpenapiType`:
&'a T
Expand All @@ -26,7 +26,7 @@ error[E0277]: the trait bound `FooBody: RequestBody` is not satisfied
--> tests/ui/endpoint/invalid_body_ty.rs:15:16
|
15 | fn endpoint(_: FooBody) {
| ^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooBody`, which is required by `FooBody: RequestBody`
| ^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooBody`
|
= help: the following other types implement trait `serde::de::Deserialize<'de>`:
&'a Path
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/endpoint/invalid_params_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ error[E0277]: the trait bound `FooParams: StateData` is not satisfied
--> tests/ui/endpoint/invalid_params_ty.rs:15:16
|
15 | fn endpoint(_: FooParams) {
| ^^^^^^^^^ the trait `StateData` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
| ^^^^^^^^^ the trait `StateData` is not implemented for `FooParams`
|
= help: the following other types implement trait `StateData`:
AuthSource
Expand All @@ -66,7 +66,7 @@ error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfi
--> tests/ui/endpoint/invalid_params_ty.rs:15:16
|
15 | fn endpoint(_: FooParams) {
| ^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
| ^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooParams`
|
= help: the following other types implement trait `StaticResponseExtender`:
FilePathExtractor
Expand All @@ -86,7 +86,7 @@ error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>`
--> tests/ui/endpoint/invalid_params_ty.rs:15:16
|
15 | fn endpoint(_: FooParams) {
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooParams` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/endpoint/invalid_placeholders_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
--> tests/ui/endpoint/invalid_placeholders_ty.rs:15:16
|
15 | fn endpoint(_: FooPlaceholders) {
| ^^^^^^^^^^^^^^^ the trait `StateData` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
| ^^^^^^^^^^^^^^^ the trait `StateData` is not implemented for `FooPlaceholders`
|
= help: the following other types implement trait `StateData`:
AuthSource
Expand All @@ -66,7 +66,7 @@ error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not s
--> tests/ui/endpoint/invalid_placeholders_ty.rs:15:16
|
15 | fn endpoint(_: FooPlaceholders) {
| ^^^^^^^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
| ^^^^^^^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooPlaceholders`
|
= help: the following other types implement trait `StaticResponseExtender`:
FilePathExtractor
Expand All @@ -86,7 +86,7 @@ error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<
--> tests/ui/endpoint/invalid_placeholders_ty.rs:15:16
|
15 | fn endpoint(_: FooPlaceholders) {
| ^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
| ^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooPlaceholders`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooPlaceholders` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
Expand Down

0 comments on commit e49ad2f

Please sign in to comment.