Browse Source

dnsbox-derive: also derive PartialOrd, Ord and Hash for native enum wrapper

preview
Stefan Bühler 2 years ago
parent
commit
2bde1d30cd
  1. 2
      lib/dnsbox-derive/src/native_enum.rs

2
lib/dnsbox-derive/src/native_enum.rs

@ -52,7 +52,7 @@ pub fn attribute_native_enum(
#known_enum
#in_attrs
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#in_vis struct #name(pub #native_type);
impl #name {

Loading…
Cancel
Save