Skip to content

Commit 66158d2

Browse files
committed
fix: Add PartialEq, Eq, PartialOrd, Ord to more types.
1 parent d8fbe1e commit 66158d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-index/src/entry/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bitflags! {
66
/// In-memory flags.
77
///
88
/// Notably, not all of these will be persisted but can be used to aid all kinds of operations.
9-
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
9+
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1010
pub struct Flags: u32 {
1111
// TODO: could we use the pathlen ourselves to save 8 bytes? And how to handle longer paths than that? 0 as sentinel maybe?
1212
/// The mask to obtain the length of the path associated with this entry, up to 4095 characters without extension.

0 commit comments

Comments
 (0)