mirror of https://github.com/fafhrd91/actix-web
review
This commit is contained in:
parent
f466d39f39
commit
b2bd67d35a
|
@ -693,7 +693,7 @@ macro_rules! tuple_from_req ({$fut_type:ident, $(($n:tt, $T:ident)),+} => {
|
||||||
impl<S> FromRequest<S> for () {
|
impl<S> FromRequest<S> for () {
|
||||||
type Config = ();
|
type Config = ();
|
||||||
type Result = Self;
|
type Result = Self;
|
||||||
fn from_request(_req: &HttpRequest<S>, _cfg: &Self::Config) {}
|
fn from_request(_req: &HttpRequest<S>, _cfg: &Self::Config) -> Self::Result {}
|
||||||
}
|
}
|
||||||
|
|
||||||
tuple_from_req!(TupleFromRequest1, (0, A));
|
tuple_from_req!(TupleFromRequest1, (0, A));
|
||||||
|
@ -1013,6 +1013,6 @@ mod tests {
|
||||||
assert_eq!((res.1).0, "name");
|
assert_eq!((res.1).0, "name");
|
||||||
assert_eq!((res.1).1, "user1");
|
assert_eq!((res.1).1, "user1");
|
||||||
|
|
||||||
<()>::extract(&req);
|
let () = <()>::extract(&req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue