This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
Update Rust crate axum to 0.7.0 - autoclosed #94
GitHub Actions / clippy
failed
Mar 24, 2024 in 0s
clippy
3 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0 (aedd173a2 2024-03-17)
- cargo 1.77.0 (3fe68eabf 2024-02-29)
- clippy 0.1.77 (aedd173 2024-03-17)
Annotations
Check failure on line 76 in src/server.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/server.rs:76:14
|
55 | async fn convert_content_type<B>(mut request: Request<B>, next: Next<B>) -> Response {
| - found this type parameter
...
76 | next.run(request).await
| --- ^^^^^^^ expected `Request<Body>`, found `Request<B>`
| |
| arguments to this method are incorrect
|
= note: expected struct `axum::http::Request<axum::body::Body>`
found struct `axum::http::Request<B>`
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/middleware/from_fn.rs:340:18
|
340 | pub async fn run(mut self, req: Request) -> Response {
| ^^^
Check failure on line 55 in src/server.rs
github-actions / clippy
struct takes 0 generic arguments but 1 generic argument was supplied
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> src/server.rs:55:65
|
55 | async fn convert_content_type<B>(mut request: Request<B>, next: Next<B>) -> Response {
| ^^^^--- help: remove these generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/middleware/from_fn.rs:334:12
|
334 | pub struct Next {
| ^^^^
Check failure on line 48 in src/server.rs
github-actions / clippy
failed to resolve: could not find `Server` in `axum`
error[E0433]: failed to resolve: could not find `Server` in `axum`
--> src/server.rs:48:11
|
48 | axum::Server::bind(&listen_address)
| ^^^^^^ could not find `Server` in `axum`
Loading