projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant Vec in `get_and_clear_pending_msg_events`
[rust-lightning]
/
lightning
/
src
/
util
/
enforcing_trait_impls.rs
diff --git
a/lightning/src/util/enforcing_trait_impls.rs
b/lightning/src/util/enforcing_trait_impls.rs
index c13907bb9e4a4b5b8c299c588ef1d0c64fc44a47..1f7b5221c8f781e337ae4a3a61b460ab21391829 100644
(file)
--- a/
lightning/src/util/enforcing_trait_impls.rs
+++ b/
lightning/src/util/enforcing_trait_impls.rs
@@
-58,6
+58,12
@@
pub struct EnforcingSigner {
pub disable_revocation_policy_check: bool,
}
pub disable_revocation_policy_check: bool,
}
+impl PartialEq for EnforcingSigner {
+ fn eq(&self, o: &Self) -> bool {
+ Arc::ptr_eq(&self.state, &o.state)
+ }
+}
+
impl EnforcingSigner {
/// Construct an EnforcingSigner
pub fn new(inner: InMemorySigner) -> Self {
impl EnforcingSigner {
/// Construct an EnforcingSigner
pub fn new(inner: InMemorySigner) -> Self {