Skip to content

Commit 6689a42

Browse files
committed
review: remove unneeded annotations
1 parent a40f60c commit 6689a42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

node/src/p2p/listen/p2p_listen_actions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ use redux::EnablingCondition;
44
use crate::State;
55

66
impl EnablingCondition<State> for P2pListenNewAction {
7-
fn is_enabled(&self, #[allow(unused_variables)] state: &State) -> bool {
7+
fn is_enabled(&self, state: &State) -> bool {
88
self.is_enabled(&state.p2p)
99
}
1010
}
1111

1212
impl EnablingCondition<State> for P2pListenExpiredAction {
13-
fn is_enabled(&self, #[allow(unused_variables)] state: &State) -> bool {
13+
fn is_enabled(&self, state: &State) -> bool {
1414
self.is_enabled(&state.p2p)
1515
}
1616
}
1717

1818
impl EnablingCondition<State> for P2pListenErrorAction {
19-
fn is_enabled(&self, #[allow(unused_variables)] state: &State) -> bool {
19+
fn is_enabled(&self, state: &State) -> bool {
2020
self.is_enabled(&state.p2p)
2121
}
2222
}
2323

2424
impl EnablingCondition<State> for P2pListenClosedAction {
25-
fn is_enabled(&self, #[allow(unused_variables)] state: &State) -> bool {
25+
fn is_enabled(&self, state: &State) -> bool {
2626
self.is_enabled(&state.p2p)
2727
}
2828
}

0 commit comments

Comments
 (0)