Merge pull request #16 from angelybo/comapre-attr

Derive PartialOrd for AttrValue so we can compare them directly
This commit is contained in:
Kedar Sovani 2023-02-08 08:24:19 +05:30 committed by GitHub
commit 89d973725a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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),