mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
add PartialEq to ShortChannelId
PartialEq makes it possible to compare 2 ShortChannelIds for equality which i found often helpful
This commit is contained in:
committed by
Vincenzo Palazzo
parent
8f94e8b943
commit
82c94330a5
@@ -100,7 +100,7 @@ impl std::ops::Sub for Amount {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct ShortChannelId(u64);
|
||||
|
||||
impl Serialize for ShortChannelId {
|
||||
|
||||
Reference in New Issue
Block a user