Skip to content

Commit 9055204

Browse files
committed
mctp-estack: Add Eq, Ord, Hash for PortId
Signed-off-by: Matt Johnston <[email protected]>
1 parent f77acd5 commit 9055204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mctp-estack/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type PortRawMutex = embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
3535
// type PortRawMutex = embassy_sync::blocking_mutex::raw::NoopRawMutex;
3636

3737
// Identifier for a Port
38-
#[derive(Debug, Clone, Copy)]
38+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
3939
pub struct PortId(pub u8);
4040

4141
/// A trait implemented by applications to determine the routing table.

0 commit comments

Comments
 (0)