Skip to content

Commit

Permalink
remove usage of dummy idents
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Jan 27, 2022
1 parent a30c8ac commit 6dfb8eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions derive/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ fn expand_endpoint_type(
let fun_is_async = fun.sig.asyncness.is_some();

let ident = endpoint_ident(fun_ident);
let dummy_ident = format_ident!("_IMPL_Endpoint_for_{ident}");
let (output_ty, is_no_content) = match &fun.sig.output {
ReturnType::Default => (quote!(::gotham_restful::NoContent), true),
ReturnType::Type(_, ty) => (quote!(#ty), false)
Expand Down Expand Up @@ -740,8 +739,7 @@ fn expand_endpoint_type(
#[allow(non_camel_case_types)]
#fun_vis struct #ident;

#[allow(non_upper_case_globals)]
static #dummy_ident: () = {
const _: () = {
#output_struct

impl #tr8 for #ident {
Expand Down

0 comments on commit 6dfb8eb

Please sign in to comment.