add PartialEq to ShortChannelId

PartialEq makes it possible to compare 2 ShortChannelIds for equality which i found often helpful
This commit is contained in:
daywalker90 2023-01-17 11:40:56 +01:00 committed by Vincenzo Palazzo
parent 8f94e8b943
commit 82c94330a5

View file

@ -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 {