From 3d91fae3082c003c8a8661ea55f4bea71ed1d112 Mon Sep 17 00:00:00 2001 From: Louis Wyborn Date: Thu, 31 Aug 2023 16:00:58 +0100 Subject: [PATCH] Remove commented out code and prefix ::core --- multi_index_map_derive/src/generators.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/multi_index_map_derive/src/generators.rs b/multi_index_map_derive/src/generators.rs index f001711..cc20284 100644 --- a/multi_index_map_derive/src/generators.rs +++ b/multi_index_map_derive/src/generators.rs @@ -80,13 +80,13 @@ pub(crate) fn generate_lookup_table_field_types( let ty = &f.ty; let type_debug = quote! { - #ty: core::fmt::Debug, + #ty: ::core::fmt::Debug, }; let field_type = index_field_type(ty, ordering, uniqueness); let field_debug = quote! { - #field_type: core::fmt::Debug, + #field_type: ::core::fmt::Debug, }; [type_debug, field_debug] @@ -873,8 +873,7 @@ pub(crate) fn generate_expanded( #[cfg(feature = "trivial_bounds")] let debug_impl = quote! { - // #[allow(trivial_bounds)] - impl core::fmt::Debug for #map_name where #element_name: core::fmt::Debug, + impl ::core::fmt::Debug for #map_name where #element_name: ::core::fmt::Debug, #(#lookup_table_field_types)* { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {