Skip to content

Commit 4ed148a

Browse files
committed
Fix unused-parentheses warnings newer rustcs have added
1 parent 94c37c6 commit 4ed148a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lightning/src/ln/channel.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ enum HTLCUpdateAwaitingACK {
184184
/// move on to ShutdownComplete, at which point most calls into this channel are disallowed.
185185
enum ChannelState {
186186
/// Implies we have (or are prepared to) send our open_channel/accept_channel message
187-
OurInitSent = (1 << 0),
187+
OurInitSent = 1 << 0,
188188
/// Implies we have received their open_channel/accept_channel message
189-
TheirInitSent = (1 << 1),
189+
TheirInitSent = 1 << 1,
190190
/// We have sent funding_created and are awaiting a funding_signed to advance to FundingSent.
191191
/// Note that this is nonsense for an inbound channel as we immediately generate funding_signed
192192
/// upon receipt of funding_created, so simply skip this state.
@@ -197,35 +197,35 @@ enum ChannelState {
197197
FundingSent = 8,
198198
/// Flag which can be set on FundingSent to indicate they sent us a funding_locked message.
199199
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
200-
TheirFundingLocked = (1 << 4),
200+
TheirFundingLocked = 1 << 4,
201201
/// Flag which can be set on FundingSent to indicate we sent them a funding_locked message.
202202
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
203-
OurFundingLocked = (1 << 5),
203+
OurFundingLocked = 1 << 5,
204204
ChannelFunded = 64,
205205
/// Flag which is set on ChannelFunded and FundingSent indicating remote side is considered
206206
/// "disconnected" and no updates are allowed until after we've done a channel_reestablish
207207
/// dance.
208-
PeerDisconnected = (1 << 7),
208+
PeerDisconnected = 1 << 7,
209209
/// Flag which is set on ChannelFunded, FundingCreated, and FundingSent indicating the user has
210210
/// told us they failed to update our ChannelMonitor somewhere and we should pause sending any
211211
/// outbound messages until they've managed to do so.
212-
MonitorUpdateFailed = (1 << 8),
212+
MonitorUpdateFailed = 1 << 8,
213213
/// Flag which implies that we have sent a commitment_signed but are awaiting the responding
214214
/// revoke_and_ack message. During this time period, we can't generate new commitment_signed
215215
/// messages as then we will be unable to determine which HTLCs they included in their
216216
/// revoke_and_ack implicit ACK, so instead we have to hold them away temporarily to be sent
217217
/// later.
218218
/// Flag is set on ChannelFunded.
219-
AwaitingRemoteRevoke = (1 << 9),
219+
AwaitingRemoteRevoke = 1 << 9,
220220
/// Flag which is set on ChannelFunded or FundingSent after receiving a shutdown message from
221221
/// the remote end. If set, they may not add any new HTLCs to the channel, and we are expected
222222
/// to respond with our own shutdown message when possible.
223-
RemoteShutdownSent = (1 << 10),
223+
RemoteShutdownSent = 1 << 10,
224224
/// Flag which is set on ChannelFunded or FundingSent after sending a shutdown message. At this
225225
/// point, we may not add any new HTLCs to the channel.
226226
/// TODO: Investigate some kind of timeout mechanism by which point the remote end must provide
227227
/// us their shutdown.
228-
LocalShutdownSent = (1 << 11),
228+
LocalShutdownSent = 1 << 11,
229229
/// We've successfully negotiated a closing_signed dance. At this point ChannelManager is about
230230
/// to drop us, but we store this anyway.
231231
ShutdownComplete = 4096,

0 commit comments

Comments
 (0)