diff --git a/src/trait_handlers/debug/debug_enum.rs b/src/trait_handlers/debug/debug_enum.rs index 1ef53f3..a361d06 100644 --- a/src/trait_handlers/debug/debug_enum.rs +++ b/src/trait_handlers/debug/debug_enum.rs @@ -2,8 +2,11 @@ use quote::{format_ident, quote, ToTokens}; use syn::{Data, DeriveInput, Fields, Meta, Type}; use super::models::{FieldAttributeBuilder, FieldName, TypeAttributeBuilder, TypeName}; -use crate::{common::path::path_to_string, supported_traits::Trait, trait_handlers::TraitHandler}; -use crate::common::ident_index::IdentOrIndex; +use crate::{ + common::{ident_index::IdentOrIndex, path::path_to_string}, + supported_traits::Trait, + trait_handlers::TraitHandler, +}; pub(crate) struct DebugEnumHandler; diff --git a/src/trait_handlers/debug/debug_struct.rs b/src/trait_handlers/debug/debug_struct.rs index c3bed81..342719b 100644 --- a/src/trait_handlers/debug/debug_struct.rs +++ b/src/trait_handlers/debug/debug_struct.rs @@ -63,7 +63,8 @@ impl TraitHandler for DebugStructHandler { continue; } - let field_name = IdentOrIndex::from_ident_with_index(field.ident.as_ref(), index); + let field_name = + IdentOrIndex::from_ident_with_index(field.ident.as_ref(), index); let key: IdentOrIndex = match field_attribute.name { FieldName::Custom(name) => name.into(), FieldName::Default => field_name.clone(),