Skip to content

Commit

Permalink
implement Ord, PartialOrd for ChannelId
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlock-Holo authored and Eugeny committed Feb 1, 2024
1 parent 2c7858e commit be6f5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion russh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ impl ChannelOpenFailure {
}
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)]
/// The identifier of a channel.
pub struct ChannelId(u32);

Expand Down

0 comments on commit be6f5be

Please sign in to comment.