Make Routable derive macro hygienic (#3437)

This commit is contained in:
Gino Valente authored and GitHub committed 2024-12-31 20:03:32 -05:00
1 parent 26132cfc59
commit 04282ef889
1 file changed
+2
+2
View File
@@ -257,6 +257,7 @@ pub fn routable(input: TokenStream) -> TokenStream {
let routable_impl = route_enum.routable_impl(); let routable_impl = route_enum.routable_impl();
(quote! { (quote! {
const _: () = {
#error_type #error_type
#display_impl #display_impl
@@ -264,6 +265,7 @@ pub fn routable(input: TokenStream) -> TokenStream {
#routable_impl #routable_impl
#parse_impl #parse_impl
};
}) })
.into() .into()
} }