Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Aug 1, 2024
1 parent e7eeb6f commit 04fd6c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/trait_handlers/debug/debug_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion src/trait_handlers/debug/debug_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 04fd6c2

Please sign in to comment.