@@ -117,8 +117,7 @@ impl Handler {
117
117
self . attempts += 1 ;
118
118
}
119
119
// A connection listener denies all incoming substreams, thus none can ever be fully
120
- // negotiated. TODO: remove when Rust 1.82 is MSRV
121
- #[ allow( unreachable_patterns) ]
120
+ // negotiated.
122
121
future:: Either :: Right ( output) => libp2p_core:: util:: unreachable ( output) ,
123
122
}
124
123
}
@@ -154,8 +153,6 @@ impl Handler {
154
153
<Self as ConnectionHandler >:: InboundProtocol ,
155
154
> ,
156
155
) {
157
- // TODO: remove when Rust 1.82 is MSRV
158
- #[ allow( unreachable_patterns) ]
159
156
libp2p_core:: util:: unreachable ( error. into_inner ( ) ) ;
160
157
}
161
158
@@ -167,8 +164,6 @@ impl Handler {
167
164
> ,
168
165
) {
169
166
let error = match error {
170
- // TODO: remove when Rust 1.82 is MSRV
171
- #[ allow( unreachable_patterns) ]
172
167
StreamUpgradeError :: Apply ( v) => libp2p_core:: util:: unreachable ( v) ,
173
168
StreamUpgradeError :: NegotiationFailed => outbound:: Error :: Unsupported ,
174
169
StreamUpgradeError :: Io ( e) => outbound:: Error :: Io ( e) ,
@@ -296,8 +291,6 @@ impl ConnectionHandler for Handler {
296
291
ConnectionEvent :: FullyNegotiatedOutbound ( fully_negotiated_outbound) => {
297
292
self . on_fully_negotiated_outbound ( fully_negotiated_outbound)
298
293
}
299
- // TODO: remove when Rust 1.82 is MSRV
300
- #[ allow( unreachable_patterns) ]
301
294
ConnectionEvent :: ListenUpgradeError ( listen_upgrade_error) => {
302
295
self . on_listen_upgrade_error ( listen_upgrade_error)
303
296
}
0 commit comments