Skip to content

Commit

Permalink
add PartialEq to ShortChannelId
Browse files Browse the repository at this point in the history
PartialEq makes it possible to compare 2 ShortChannelIds for equality which i found often helpful
  • Loading branch information
daywalker90 authored and vincenzopalazzo committed Jan 17, 2023
1 parent 8f94e8b commit 82c9433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cln-rpc/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 82c9433

Please sign in to comment.