Skip to content
Prev Previous commit
Next Next commit
Impl hash
  • Loading branch information
ShaharNaveh committed Mar 23, 2026
commit 9fbc6d30e9e7bfcd62a20507fad9f3736d2b8b7e
4 changes: 2 additions & 2 deletions crates/macros/src/newtype_oparg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub(super) fn handle_struct(item: ItemStruct) -> syn::Result<proc_macro2::TokenS
let semi_token = semi_token.unwrap_or_default();
let output = quote! {
#(#attrs)*
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#vis #struct_token #ident(u32)#semi_token

impl #ident {
Expand Down Expand Up @@ -270,7 +270,7 @@ pub(super) fn handle_enum(item: ItemEnum) -> syn::Result<proc_macro2::TokenStrea

let output = quote! {
#(#attrs)*
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#vis #enum_token #ident {
#(#variants_def),*
}
Expand Down
Loading