projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop the `Writeable::encode_with_len` method in non-test buidls
[rust-lightning]
/
lightning
/
src
/
util
/
test_utils.rs
diff --git
a/lightning/src/util/test_utils.rs
b/lightning/src/util/test_utils.rs
index afdc10dda3c473443e369b11b38bbfad9ff68c66..27c2d9de874ed45abca03dabe171ca238d7288ff 100644
(file)
--- a/
lightning/src/util/test_utils.rs
+++ b/
lightning/src/util/test_utils.rs
@@
-411,7
+411,10
@@
impl events::MessageSendEventsProvider for TestRoutingMessageHandler {
pub struct TestLogger {
level: Level,
pub struct TestLogger {
level: Level,
+ #[cfg(feature = "std")]
id: String,
id: String,
+ #[cfg(not(feature = "std"))]
+ _id: String,
pub lines: Mutex<HashMap<(String, String), usize>>,
}
pub lines: Mutex<HashMap<(String, String), usize>>,
}
@@
-422,7
+425,10
@@
impl TestLogger {
pub fn with_id(id: String) -> TestLogger {
TestLogger {
level: Level::Trace,
pub fn with_id(id: String) -> TestLogger {
TestLogger {
level: Level::Trace,
+ #[cfg(feature = "std")]
id,
id,
+ #[cfg(not(feature = "std"))]
+ _id: id,
lines: Mutex::new(HashMap::new())
}
}
lines: Mutex::new(HashMap::new())
}
}