From 0c5be5d01a57b74f492343ba5a76849fca424b4a Mon Sep 17 00:00:00 2001 From: Dominic Date: Tue, 9 Mar 2021 19:57:13 +0100 Subject: [PATCH] fix endpoint macro not using `()` for empty bodies --- derive/src/endpoint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/derive/src/endpoint.rs b/derive/src/endpoint.rs index f6f143b..f4c8162 100644 --- a/derive/src/endpoint.rs +++ b/derive/src/endpoint.rs @@ -201,7 +201,7 @@ impl EndpointType { if self.needs_body().value { arg_ty.to_token_stream() } else { - quote!(::gotham_restful::gotham::extractor::NoopPathExtractor) + quote!(()) } }, }