projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reorganize #[cfg(not(c_bindings))] imports
[rust-lightning]
/
lightning
/
src
/
routing
/
scoring.rs
diff --git
a/lightning/src/routing/scoring.rs
b/lightning/src/routing/scoring.rs
index 646405c6287ac150d88199890137020e0350079f..8c36bd100e5b0a2cd51d08d828d63a66216f18a8 100644
(file)
--- a/
lightning/src/routing/scoring.rs
+++ b/
lightning/src/routing/scoring.rs
@@
-251,7
+251,7
@@
impl<'a, T: Score + 'a> LockableScore<'a> for RefCell<T> {
}
}
}
}
-#[cfg(
not(c_bindings
))]
+#[cfg(
any(not(c_bindings), feature = "_test_utils", test
))]
impl<'a, T: Score + 'a> LockableScore<'a> for RwLock<T> {
type ScoreUpdate = T;
type ScoreLookUp = T;
impl<'a, T: Score + 'a> LockableScore<'a> for RwLock<T> {
type ScoreUpdate = T;
type ScoreLookUp = T;