mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Improve opaque error message for Handler::layer (#1336)
This commit is contained in:
@@ -140,7 +140,7 @@ pub trait Handler<T, S, B = Body>: Clone + Send + Sized + 'static {
|
|||||||
/// ```
|
/// ```
|
||||||
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S, B>
|
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S, B>
|
||||||
where
|
where
|
||||||
L: Layer<WithState<Self, T, S, B>>,
|
L: Layer<WithState<Self, T, S, B>> + Clone,
|
||||||
{
|
{
|
||||||
Layered {
|
Layered {
|
||||||
layer,
|
layer,
|
||||||
|
|||||||
Reference in New Issue
Block a user