Skip to content

Commit 4243b40

Browse files
committed
Address new rustc warnings.
1 parent 21a9024 commit 4243b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ enum ChannelState {
207207
/// to drop us, but we store this anyway.
208208
ShutdownComplete = 4096,
209209
}
210-
const BOTH_SIDES_SHUTDOWN_MASK: u32 = (ChannelState::LocalShutdownSent as u32 | ChannelState::RemoteShutdownSent as u32);
211-
const MULTI_STATE_FLAGS: u32 = (BOTH_SIDES_SHUTDOWN_MASK | ChannelState::PeerDisconnected as u32 | ChannelState::MonitorUpdateFailed as u32);
210+
const BOTH_SIDES_SHUTDOWN_MASK: u32 = ChannelState::LocalShutdownSent as u32 | ChannelState::RemoteShutdownSent as u32;
211+
const MULTI_STATE_FLAGS: u32 = BOTH_SIDES_SHUTDOWN_MASK | ChannelState::PeerDisconnected as u32 | ChannelState::MonitorUpdateFailed as u32;
212212

213213
const INITIAL_COMMITMENT_NUMBER: u64 = (1 << 48) - 1;
214214

@@ -382,7 +382,7 @@ pub const COMMITMENT_TX_WEIGHT_PER_HTLC: u64 = 172;
382382

383383
/// Maximmum `funding_satoshis` value, according to the BOLT #2 specification
384384
/// it's 2^24.
385-
pub const MAX_FUNDING_SATOSHIS: u64 = (1 << 24);
385+
pub const MAX_FUNDING_SATOSHIS: u64 = 1 << 24;
386386

387387
/// Used to return a simple Error back to ChannelManager. Will get converted to a
388388
/// msgs::ErrorAction::SendErrorMessage or msgs::ErrorAction::IgnoreError as appropriate with our

0 commit comments

Comments
 (0)