mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: rm uneccessary trait bounds (#8019)
This commit is contained in:
@ -44,11 +44,7 @@ pub struct AuthLayer<V> {
|
|||||||
validator: V,
|
validator: V,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<V> AuthLayer<V>
|
impl<V> AuthLayer<V> {
|
||||||
where
|
|
||||||
V: AuthValidator,
|
|
||||||
V::ResponseBody: Body,
|
|
||||||
{
|
|
||||||
/// Creates an instance of [`AuthLayer`].
|
/// Creates an instance of [`AuthLayer`].
|
||||||
/// `validator` is a generic trait able to validate requests (see [`AuthValidator`]).
|
/// `validator` is a generic trait able to validate requests (see [`AuthValidator`]).
|
||||||
pub fn new(validator: V) -> Self {
|
pub fn new(validator: V) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user