Skip to content

Commit

Permalink
Remove commented out code and prefix ::core
Browse files Browse the repository at this point in the history
  • Loading branch information
lun3x committed Aug 31, 2023
1 parent 8ee66d2 commit 3d91fae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions multi_index_map_derive/src/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3d91fae

Please sign in to comment.