Skip to content

Commit 5a1a91d

Browse files
committed
Derive PartialOrd/Ord for NPY_TYPES
1 parent b30701c commit 5a1a91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/npyffi/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub enum NPY_DATETIMEUNIT {
115115
}
116116

117117
#[repr(u32)]
118-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
118+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
119119
pub enum NPY_TYPES {
120120
NPY_BOOL = 0,
121121
NPY_BYTE = 1,

0 commit comments

Comments
 (0)