Make Routable derive macro hygienic (#3437)
This commit is contained in:
1 parent
26132cfc59
commit
04282ef889
1 file changed
+6
-4
@@ -257,13 +257,15 @@ pub fn routable(input: TokenStream) -> TokenStream {
|
||||
let routable_impl = route_enum.routable_impl();
|
||||
|
||||
(quote! {
|
||||
#error_type
|
||||
const _: () = {
|
||||
#error_type
|
||||
|
||||
#display_impl
|
||||
#display_impl
|
||||
|
||||
#routable_impl
|
||||
#routable_impl
|
||||
|
||||
#parse_impl
|
||||
#parse_impl
|
||||
};
|
||||
})
|
||||
.into()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user