no-bound derives: Use absolute path for core (#1763)

Closes: https://github.com/paritytech/polkadot-sdk/issues/1718
This commit is contained in:
Bastian Köcher authored and GitHub committed 2023-10-02 06:45:32 +11:00
1 parent 2ed66a0960
commit c54ea64af4
6 files changed
+31 -17

No files matched your search

@@ -112,8 +112,8 @@ pub fn derive_debug_no_bound(input: proc_macro::TokenStream) -> proc_macro::Toke
quote::quote!(
const _: () = {
impl #impl_generics core::fmt::Debug for #input_ident #ty_generics #where_clause {
fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::fmt::Result {
impl #impl_generics ::core::fmt::Debug for #input_ident #ty_generics #where_clause {
fn fmt(&self, fmt: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
#impl_
}
}