Skip to content

Commit 6eca0b3

Browse files
committed
Derive PartialOrd for AttrValue so we can compare them directly when updating numeric attributes.
1 parent d77871e commit 6eca0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matter/src/data_model/objects/attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ bitflags! {
8888
* - instead of arrays, can use linked-lists to conserve space and avoid the internal fragmentation
8989
*/
9090

91-
#[derive(PartialEq, Clone)]
91+
#[derive(PartialEq, PartialOrd, Clone)]
9292
pub enum AttrValue {
9393
Int64(i64),
9494
Uint8(u8),

0 commit comments

Comments
 (0)