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:
parent
59e97f5d70
commit
0c5be5d01a
1 changed files with 1 additions and 1 deletions
|
@ -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!(())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue