1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 13:02:28 +00:00

fix endpoint macro not using () for empty bodies

This commit is contained in:
Dominic 2021-03-09 19:57:13 +01:00
parent 59e97f5d70
commit 0c5be5d01a
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -201,7 +201,7 @@ impl EndpointType {
if self.needs_body().value { if self.needs_body().value {
arg_ty.to_token_stream() arg_ty.to_token_stream()
} else { } else {
quote!(::gotham_restful::gotham::extractor::NoopPathExtractor) quote!(())
} }
}, },
} }