Skip to content

Commit

Permalink
Merge pull request project-chip#16 from angelybo/comapre-attr
Browse files Browse the repository at this point in the history
Derive PartialOrd for AttrValue so we can compare them directly
  • Loading branch information
kedars authored Feb 8, 2023
2 parents d77871e + 6eca0b3 commit 89d9737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matter/src/data_model/objects/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bitflags! {
* - instead of arrays, can use linked-lists to conserve space and avoid the internal fragmentation
*/

#[derive(PartialEq, Clone)]
#[derive(PartialEq, PartialOrd, Clone)]
pub enum AttrValue {
Int64(i64),
Uint8(u8),
Expand Down

0 comments on commit 89d9737

Please sign in to comment.