Skip to content

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #153

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #153

Triggered via pull request November 23, 2023 19:32
Status Failure
Total duration 1m 3s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: src/frontend/http.rs#L15
error[E0432]: unresolved import `file_format` --> src/frontend/http.rs:15:5 | 15 | use file_format::FileFormat; | ^^^^^^^^^^^ use of undeclared crate or module `file_format`
lint: src/backend/fs.rs#L7
error: unused import: `time::Duration` --> src/backend/fs.rs:7:5 | 7 | time::Duration, | ^^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings`
lint: src/frontend/http.rs#L165
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:165:35 | 165 | .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#L165
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:165:35 | 165 | .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#L166
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:166:47 | 166 | .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#L166
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:166:47 | 166 | .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/backend/fs.rs#L44
error: variable does not need to be mutable --> src/backend/fs.rs:44:5 | 44 | mut mime_type_receiver: watch::Receiver<String>, | ----^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `-D unused-mut` implied by `-D warnings`
lint: src/backend/fs.rs#L64
error: variable does not need to be mutable --> src/backend/fs.rs:64:9 | 64 | let mut current_mime_type = mime_type_receiver.borrow().clone(); // Initialize with the current value | ----^^^^^^^^^^^^^^^^^ | | | help: remove this `mut`
lint
Process completed with exit code 1.
build
Process completed with exit code 101.