From 5be1e5c37acb3d9d545a0e5b2992f0bf3148cc4e Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 23 Nov 2025 03:30:37 +0000 Subject: derive Hash for Atom and similar types --- src/useflag/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/useflag') diff --git a/src/useflag/mod.rs b/src/useflag/mod.rs index c5a6424..c367b1a 100644 --- a/src/useflag/mod.rs +++ b/src/useflag/mod.rs @@ -4,10 +4,10 @@ use get::Get; mod parsers; -#[derive(Clone, Debug, PartialEq, Eq, Get)] +#[derive(Clone, Debug, PartialEq, Eq, Hash, Get)] pub struct UseFlag(#[get(method = "name", kind = "deref")] String); -#[derive(Clone, Debug, PartialEq, Eq, Get)] +#[derive(Clone, Debug, PartialEq, Eq, Hash, Get)] pub struct IUseFlag { default: bool, flag: UseFlag, -- cgit v1.2.3