Skip to content

Commit 3f92f7d

Browse files
authored
Improve opaque error message for Handler::layer (#1336)
1 parent 805463c commit 3f92f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axum/src/handler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub trait Handler<T, S, B = Body>: Clone + Send + Sized + 'static {
140140
/// ```
141141
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S, B>
142142
where
143-
L: Layer<WithState<Self, T, S, B>>,
143+
L: Layer<WithState<Self, T, S, B>> + Clone,
144144
{
145145
Layered {
146146
layer,

0 commit comments

Comments
 (0)