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

This commit is contained in:
Stefan Bühler 2020-03-07 16:10:59 +01:00
parent c503ee65e0
commit 2bde1d30cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 {