ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #143
Annotations
12 errors
format
Process completed with exit code 1.
|
lint:
src/backend/fs.rs#L9
error: unused import: `anyhow`
--> src/backend/fs.rs:9:14
|
9 | use anyhow::{anyhow, Error, Result};
| ^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
|
lint:
src/backend/fs.rs#L16
error: unused import: `TryParStreamExt`
--> src/backend/fs.rs:16:32
|
16 | use par_stream::{ParStreamExt, TryParStreamExt};
| ^^^^^^^^^^^^^^^
|
lint:
src/structs.rs#L6
error: unused import: `axum::extract::BodyStream`
--> src/structs.rs:6:5
|
6 | use axum::extract::BodyStream;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
lint:
src/structs.rs#L7
error: unused import: `bytes::BytesMut`
--> src/structs.rs:7:5
|
7 | use bytes::BytesMut;
| ^^^^^^^^^^^^^^^
|
lint:
src/frontend/http.rs#L40
error: unused variable: `is_mime_type`
--> src/frontend/http.rs:40:47
|
40 | |(mut body_stream, mut remainder, mut is_mime_type)| async move {
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mime_type`
|
= note: `-D unused-variables` implied by `-D warnings`
|
lint:
src/frontend/http.rs#L40
error: variable does not need to be mutable
--> src/frontend/http.rs:40:43
|
40 | |(mut body_stream, mut remainder, mut is_mime_type)| async move {
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
|
lint:
src/frontend/http.rs#L168
error[E0277]: the trait bound `fn(axum::extract::Path<std::string::String>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file}: axum::handler::Handler<_, _, _>` is not satisfied
--> src/frontend/http.rs:168:35
|
168 | .route("/store/:pk", post(post_file))
| ---- ^^^^^^^^^ the trait `axum::handler::Handler<_, _, _>` is not implemented for fn item `fn(axum::extract::Path<std::string::String>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `axum::handler::Handler<T, S, B>`:
<axum::handler::Layered<L, H, T, S, B, B2> as axum::handler::Handler<T, S, B2>>
<axum::routing::MethodRouter<S, B> as axum::handler::Handler<(), S, B>>
note: required by a bound in `axum::routing::post`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.11/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
lint:
src/frontend/http.rs#L168
error[E0277]: the trait bound `fn(axum::extract::Path<std::string::String>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file}: axum::handler::Handler<_, _, _>` is not satisfied
--> src/frontend/http.rs:168:35
|
168 | .route("/store/:pk", post(post_file))
| ---- ^^^^^^^^^ the trait `axum::handler::Handler<_, _, _>` is not implemented for fn item `fn(axum::extract::Path<std::string::String>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `axum::handler::Handler<T, S, B>`:
<axum::handler::Layered<L, H, T, S, B, B2> as axum::handler::Handler<T, S, B2>>
<axum::routing::MethodRouter<S, B> as axum::handler::Handler<(), S, B>>
note: required by a bound in `axum::routing::post`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.11/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
lint:
src/frontend/http.rs#L169
error[E0277]: the trait bound `fn(axum::extract::Path<(std::string::String, std::string::String)>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file_named}: axum::handler::Handler<_, _, _>` is not satisfied
--> src/frontend/http.rs:169:47
|
169 | .route("/store_named/:pk/:name", post(post_file_named))
| ---- ^^^^^^^^^^^^^^^ the trait `axum::handler::Handler<_, _, _>` is not implemented for fn item `fn(axum::extract::Path<(std::string::String, std::string::String)>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file_named}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `axum::handler::Handler<T, S, B>`:
<axum::handler::Layered<L, H, T, S, B, B2> as axum::handler::Handler<T, S, B2>>
<axum::routing::MethodRouter<S, B> as axum::handler::Handler<(), S, B>>
note: required by a bound in `axum::routing::post`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.11/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
lint:
src/frontend/http.rs#L169
error[E0277]: the trait bound `fn(axum::extract::Path<(std::string::String, std::string::String)>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file_named}: axum::handler::Handler<_, _, _>` is not satisfied
--> src/frontend/http.rs:169:47
|
169 | .route("/store_named/:pk/:name", post(post_file_named))
| ---- ^^^^^^^^^^^^^^^ the trait `axum::handler::Handler<_, _, _>` is not implemented for fn item `fn(axum::extract::Path<(std::string::String, std::string::String)>, axum::extract::BodyStream) -> impl futures_util::Future<Output = std::result::Result<impl axum::response::IntoResponse, frontend::http::AppError>> {frontend::http::post_file_named}`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `axum::handler::Handler<T, S, B>`:
<axum::handler::Layered<L, H, T, S, B, B2> as axum::handler::Handler<T, S, B2>>
<axum::routing::MethodRouter<S, B> as axum::handler::Handler<(), S, B>>
note: required by a bound in `axum::routing::post`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.11/src/routing/method_routing.rs:407:1
|
407 | top_level_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `post`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
build
Process completed with exit code 101.
|