chore: rm uneccessary trait bounds (#8019)

This commit is contained in:
Matthias Seitz
2024-05-01 13:24:46 +02:00
committed by GitHub
parent fb960fb3e4
commit f832b66f99

View File

@ -44,11 +44,7 @@ pub struct AuthLayer<V> {
validator: V,
}
impl<V> AuthLayer<V>
where
V: AuthValidator,
V::ResponseBody: Body,
{
impl<V> AuthLayer<V> {
/// Creates an instance of [`AuthLayer`].
/// `validator` is a generic trait able to validate requests (see [`AuthValidator`]).
pub fn new(validator: V) -> Self {