Derive PartialOrd for AttrValue so we can compare them directly when updating numeric attributes.

This commit is contained in:
Angel Yankov 2023-02-07 12:11:38 +02:00
parent d77871e44e
commit 6eca0b307c

View file

@ -88,7 +88,7 @@ bitflags! {
* - instead of arrays, can use linked-lists to conserve space and avoid the internal fragmentation * - 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 { pub enum AttrValue {
Int64(i64), Int64(i64),
Uint8(u8), Uint8(u8),