Skip to content

Commit 25b0c2a

Browse files
committed
Silence new rustc warning about useless muts
1 parent 9d8efec commit 25b0c2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/ln/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@ mod channel;
3535
mod onion_utils;
3636
mod wire;
3737

38+
// Older rustc (which we support) refuses to let us call the get_payment_preimage_hash!() macro
39+
// without the node parameter being mut. This is incorrect, and thus newer rustcs will complain
40+
// about an unnecessary mut. Thus, we silence the unused_mut warning in two test modules below.
41+
3842
#[cfg(test)]
3943
#[macro_use]
4044
pub(crate) mod functional_test_utils;
4145
#[cfg(test)]
46+
#[allow(unused_mut)]
4247
mod functional_tests;
4348
#[cfg(test)]
49+
#[allow(unused_mut)]
4450
mod chanmon_update_fail_tests;
4551
#[cfg(test)]
4652
mod reorg_tests;

0 commit comments

Comments
 (0)