File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 22
33- Remove blanket-impl of ` {In,Out}boundUpgrade ` for ` {In,Out}boundConnectionUpgrade ` .
44 See [ PR 4695] ( https://github.com/libp2p/rust-libp2p/pull/4695 ) .
5+ - Remove deprecated functions from ` ListenerId ` .
6+ See [ PR 4736] ( https://github.com/libp2p/rust-libp2p/pull/4736 ) .
57
68## 0.40.1
79
Original file line number Diff line number Diff line change @@ -250,23 +250,10 @@ pub trait Transport {
250250pub struct ListenerId ( usize ) ;
251251
252252impl ListenerId {
253- #[ deprecated( note = "Renamed to ` ListenerId::next`." ) ]
254- #[ allow( clippy:: new_without_default) ]
255- /// Creates a new `ListenerId`.
256- pub fn new ( ) -> Self {
257- ListenerId :: next ( )
258- }
259-
260253 /// Creates a new `ListenerId`.
261254 pub fn next ( ) -> Self {
262255 ListenerId ( NEXT_LISTENER_ID . fetch_add ( 1 , Ordering :: SeqCst ) )
263256 }
264-
265- #[ deprecated( note = "Use ` ListenerId::next` instead." ) ]
266- #[ allow( clippy:: should_implement_trait) ]
267- pub fn default ( ) -> Self {
268- Self :: next ( )
269- }
270257}
271258
272259/// Event produced by [`Transport`]s.
You can’t perform that action at this time.
0 commit comments