mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 04:31:02 +00:00
no-bound derives: Use absolute path for core (#1763)
Closes: https://github.com/paritytech/polkadot-sdk/issues/1718
This commit is contained in:
@@ -442,8 +442,8 @@ pub fn derive_runtime_debug_no_bound(input: TokenStream) -> TokenStream {
|
||||
|
||||
quote::quote!(
|
||||
const _: () = {
|
||||
impl #impl_generics core::fmt::Debug for #name #ty_generics #where_clause {
|
||||
fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::fmt::Result {
|
||||
impl #impl_generics ::core::fmt::Debug for #name #ty_generics #where_clause {
|
||||
fn fmt(&self, fmt: &mut ::core::fmt::Formatter) -> core::fmt::Result {
|
||||
fmt.write_str("<wasm:stripped>")
|
||||
}
|
||||
}
|
||||
@@ -473,7 +473,7 @@ pub fn derive_eq_no_bound(input: TokenStream) -> TokenStream {
|
||||
|
||||
quote::quote_spanned!(name.span() =>
|
||||
const _: () = {
|
||||
impl #impl_generics core::cmp::Eq for #name #ty_generics #where_clause {}
|
||||
impl #impl_generics ::core::cmp::Eq for #name #ty_generics #where_clause {}
|
||||
};
|
||||
)
|
||||
.into()
|
||||
|
||||
Reference in New Issue
Block a user