Move Headers into axum

This commit is contained in:
David Pedersen
2022-01-23 20:25:12 +01:00
parent bf83f34617
commit d4849820ce
4 changed files with 22 additions and 21 deletions
@@ -1,10 +1,9 @@
error[E0277]: the trait bound `bool: axum_core::response::IntoResponseHeaders` is not satisfied
error[E0277]: the trait bound `bool: IntoResponse` is not satisfied
--> tests/fail/wrong_return_type.rs:4:23
|
4 | async fn handler() -> bool {
| ^^^^ the trait `axum_core::response::IntoResponseHeaders` is not implemented for `bool`
| ^^^^ the trait `IntoResponse` is not implemented for `bool`
|
= note: required because of the requirements on the impl of `IntoResponse` for `bool`
note: required by a bound in `__axum_debug_check_handler_into_response::{closure#0}::check`
--> tests/fail/wrong_return_type.rs:4:23
|