Housekeeping: fix some warning and docs#2568
Housekeeping: fix some warning and docs#2568TheBlueMatt merged 5 commits intolightningdevkit:mainfrom
Conversation
9e72be3 to
8f403c0
Compare
|
Oops, I had a few of these queued up in the first commit on #2169. Happy to rebase on here or whatever, though...I really need to stop slipping cleanups in PRs I think are gonna be merged soon (tm) :/ |
|
I'm still getting 2 warnings on this branch, are those removable at this time? |
`ChannelId` was weirdly listed in the re-export section of the docs and reachable via multiple paths. Here we opt to make the `channel_id` module private and leave only the `ChannelId` struct itself exposed.
58554ce to
2ece4dd
Compare
Ah, did see that some of them were fixed there already. Now rebased after it was merged.
I addressed most of them now, only hesitant to touch the unused |
It is, yes. |
2ece4dd to
411a3f7
Compare
|
Force-pushed once more including the following fixups: > git diff-tree -U2 2ece4dd0 411a3f7d
diff --git a/lightning/src/ln/monitor_tests.rs b/lightning/src/ln/monitor_tests.rs
index 95229348..ece24794 100644
--- a/lightning/src/ln/monitor_tests.rs
+++ b/lightning/src/ln/monitor_tests.rs
@@ -2232,5 +2232,5 @@ fn test_anchors_aggregated_revoked_htlc_tx() {
let spendable_output_events = nodes[0].chain_monitor.chain_monitor.get_and_clear_pending_events();
assert_eq!(spendable_output_events.len(), 2);
- for (_idx, event) in spendable_output_events.iter().enumerate() {
+ for event in spendable_output_events.iter() {
if let Event::SpendableOutputs { outputs, channel_id } = event {
assert_eq!(outputs.len(), 1);
diff --git a/lightning/src/util/test_utils.rs b/lightning/src/util/test_utils.rs
index 63b33a67..785b40be 100644
--- a/lightning/src/util/test_utils.rs
+++ b/lightning/src/util/test_utils.rs
@@ -283,5 +283,5 @@ struct JusticeTxData {
}
-pub struct WatchtowerPersister {
+pub(crate) struct WatchtowerPersister {
persister: TestPersister,
/// Upon a new commitment_signed, we'll get a |
We fix how we expose
ChannelIdas it looked weird in docs and was reachable via multiple ways.Moreover, we fix a bunch of compiler warnings.