Skip to content

Commit

Permalink
Merge pull request #89 from nervosnetwork/derive-ord-for-bytes
Browse files Browse the repository at this point in the history
Derive Ord for bytes::Bytes
  • Loading branch information
quake authored Feb 1, 2024
2 parents e996a62 + 21f67d1 commit 37748b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/rust/src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use core::{
ops::{Bound, Deref, RangeBounds},
};

#[derive(Debug, Default, Clone, PartialEq, Eq)]
#[derive(Debug, Default, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Bytes(Vec<u8>);

impl From<Vec<u8>> for Bytes {
Expand Down

0 comments on commit 37748b1

Please sign in to comment.