Improve opaque error message for Handler::layer (#1336)

This commit is contained in:
David Pedersen 2022-08-28 22:17:05 +02:00 committed by GitHub
parent 805463c2ef
commit 3f92f7d254
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,