projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add derives where they make sense and the bindings require them
[rust-lightning]
/
lightning
/
src
/
routing
/
utxo.rs
diff --git
a/lightning/src/routing/utxo.rs
b/lightning/src/routing/utxo.rs
index e190d4258ae4c6b862ad13135eaf1d656fab32f9..e775e2628f6ca1df9e497a084506be7dd7eed6eb 100644
(file)
--- a/
lightning/src/routing/utxo.rs
+++ b/
lightning/src/routing/utxo.rs
@@
-307,7
+307,7
@@
pub(super) struct PendingChecks {
impl PendingChecks {
pub(super) fn new() -> Self {
PendingChecks { internal: Mutex::new(PendingChecksContext {
impl PendingChecks {
pub(super) fn new() -> Self {
PendingChecks { internal: Mutex::new(PendingChecksContext {
- channels:
HashMap::new(), nodes: HashMap::new
(),
+ channels:
new_hash_map(), nodes: new_hash_map
(),
}) }
}
}) }
}
@@
-563,7
+563,6
@@
mod tests {
use super::*;
use crate::routing::gossip::tests::*;
use crate::util::test_utils::{TestChainSource, TestLogger};
use super::*;
use crate::routing::gossip::tests::*;
use crate::util::test_utils::{TestChainSource, TestLogger};
- use crate::ln::msgs;
use bitcoin::secp256k1::{Secp256k1, SecretKey};
use bitcoin::secp256k1::{Secp256k1, SecretKey};