Skip to content

Commit 9fbc6d3

Browse files
committed
Impl hash
1 parent f5c2f9b commit 9fbc6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/macros/src/newtype_oparg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub(super) fn handle_struct(item: ItemStruct) -> syn::Result<proc_macro2::TokenS
2929
let semi_token = semi_token.unwrap_or_default();
3030
let output = quote! {
3131
#(#attrs)*
32-
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
32+
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
3333
#vis #struct_token #ident(u32)#semi_token
3434

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

271271
let output = quote! {
272272
#(#attrs)*
273-
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
273+
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
274274
#vis #enum_token #ident {
275275
#(#variants_def),*
276276
}

0 commit comments

Comments
 (0)