File tree Expand file tree Collapse file tree 2 files changed +129
-68
lines changed Expand file tree Collapse file tree 2 files changed +129
-68
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ impl From<bool> for AnySetting {
191191pub trait SettingsEnum : FromPrimitive + ToPrimitive { }
192192
193193/// A fixed identifier that points to a given setting. The id and name cannot be changed or reused once created.
194- #[ derive( Debug , PartialEq , Eq , Clone ) ]
194+ #[ derive( Debug , Clone ) ]
195195pub struct SettingID < T : Settings > {
196196 pub id : u32 ,
197197 pub name : & ' static str ,
@@ -210,6 +210,14 @@ impl<T: Settings> std::hash::Hash for SettingID<T> {
210210 }
211211}
212212
213+ impl < T : Settings > PartialEq for SettingID < T > {
214+ fn eq ( & self , other : & Self ) -> bool {
215+ self . id == other. id && self . name == other. name
216+ }
217+ }
218+
219+ impl < T : Settings > Eq for SettingID < T > { }
220+
213221impl < T : Settings > SettingID < T > {
214222 pub const fn new (
215223 id : u32 ,
You can’t perform that action at this time.
0 commit comments