mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +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:
parent
8f94e8b943
commit
82c94330a5
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue