Skip to content

Commit

Permalink
Post-unification cleanup: Rename clone_enum to clone_data
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Aug 1, 2024
1 parent 211891b commit dbc0aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use crate::{
common::variant_info::VariantInfo,
};

pub(crate) struct CloneEnumHandler;
pub(crate) struct CloneDataHandler;

impl TraitHandler for CloneEnumHandler {
impl TraitHandler for CloneDataHandler {
#[inline]
fn trait_meta_handler(
ast: &DeriveInput,
Expand Down
4 changes: 2 additions & 2 deletions src/trait_handlers/clone/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod clone_enum;
mod clone_data;
mod clone_union;
mod models;

Expand All @@ -19,7 +19,7 @@ impl TraitHandler for CloneHandler {
) -> syn::Result<()> {
match ast.data {
Data::Struct(_) | Data::Enum(_) => {
clone_enum::CloneEnumHandler::trait_meta_handler(ast, token_stream, traits, meta)
clone_data::CloneDataHandler::trait_meta_handler(ast, token_stream, traits, meta)
},
Data::Union(_) => {
clone_union::CloneUnionHandler::trait_meta_handler(ast, token_stream, traits, meta)
Expand Down

0 comments on commit dbc0aa9

Please sign in to comment.