Skip to content

#31 route extension detection #166

#31 route extension detection

#31 route extension detection #166

Triggered via pull request December 19, 2023 16:27
Status Failure
Total duration 1m 29s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
lint: src/frontend/http.rs#L140
error: unnecessary parentheses around type --> src/frontend/http.rs:140:46 | 140 | async fn get_file_extension(Path(name): Path<(String)>) -> Result<impl IntoResponse, AppError> { | ^ ^ | = note: `-D unused-parens` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_parens)]` help: remove these parentheses | 140 - async fn get_file_extension(Path(name): Path<(String)>) -> Result<impl IntoResponse, AppError> { 140 + async fn get_file_extension(Path(name): Path<String>) -> Result<impl IntoResponse, AppError> { |
lint: src/frontend/http.rs#L140
error: unnecessary parentheses around type --> src/frontend/http.rs:140:46 | 140 | async fn get_file_extension(Path(name): Path<(String)>) -> Result<impl IntoResponse, AppError> { | ^ ^ | = note: `-D unused-parens` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_parens)]` help: remove these parentheses | 140 - async fn get_file_extension(Path(name): Path<(String)>) -> Result<impl IntoResponse, AppError> { 140 + async fn get_file_extension(Path(name): Path<String>) -> Result<impl IntoResponse, AppError> { |
lint: src/frontend/http.rs#L153
error[E0433]: failed to resolve: use of undeclared type `StreamBody` --> src/frontend/http.rs:153:25 | 153 | Ok((StatusCode::OK, StreamBody::new(file_stream))) | ^^^^^^^^^^ use of undeclared type `StreamBody`
lint
Process completed with exit code 1.
build
Process completed with exit code 101.