Skip to content

Commit

Permalink
Improve opaque error message for Handler::layer (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Aug 28, 2022
1 parent 805463c commit 3f92f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum/src/handler/mod.rs
Expand Up @@ -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>
where
L: Layer<WithState<Self, T, S, B>>,
L: Layer<WithState<Self, T, S, B>> + Clone,
{
Layered {
layer,
Expand Down

0 comments on commit 3f92f7d

Please sign in to comment.