#31 route extension detection #166
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.
|