Skip to content

Commit 3ee1856

Browse files
feat(yamux): remove deprecated items
Related: #3647. Pull-Request: #3897.
1 parent 3165b12 commit 3ee1856

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

muxers/yamux/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
- Raise MSRV to 1.65.
44
See [PR 3715].
55

6+
- Remove deprecated items.
7+
See [PR 3897].
8+
69
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
10+
[PR 3897]: https://github.com/libp2p/rust-libp2p/pull/3897
711

812
## 0.43.1
913

muxers/yamux/src/lib.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ use std::{
4040
use thiserror::Error;
4141
use yamux::ConnectionError;
4242

43-
#[deprecated(note = "Import the `yamux` module instead and refer to this type as `yamux::Muxer`.")]
44-
pub type Yamux<S> = Muxer<S>;
45-
4643
/// A Yamux connection.
4744
pub struct Muxer<S> {
4845
/// The [`futures::stream::Stream`] of incoming substreams.
@@ -113,9 +110,6 @@ where
113110
}
114111
}
115112

116-
#[deprecated(note = "Use `Result<T, yamux::Error>` instead.")]
117-
pub type YamuxResult<T> = Result<T, Error>;
118-
119113
impl<S> StreamMuxer for Muxer<S>
120114
where
121115
S: Stream<Item = Result<yamux::Stream, Error>> + Unpin,
@@ -200,9 +194,6 @@ where
200194
}
201195
}
202196

203-
#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Config` instead.")]
204-
pub type YamuxConfig = Config;
205-
206197
/// The yamux configuration.
207198
#[derive(Debug, Clone)]
208199
pub struct Config {
@@ -250,11 +241,6 @@ impl WindowUpdateMode {
250241
}
251242
}
252243

253-
#[deprecated(
254-
note = "Import the `yamux` module and refer to this type as `yamux::LocalConfig` instead."
255-
)]
256-
pub type YamuxLocalConfig = LocalConfig;
257-
258244
/// The yamux configuration for upgrading I/O resources which are ![`Send`].
259245
#[derive(Clone)]
260246
pub struct LocalConfig(Config);
@@ -396,9 +382,6 @@ where
396382
}
397383
}
398384

399-
#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Error` instead.")]
400-
pub type YamuxError = Error;
401-
402385
/// The Yamux [`StreamMuxer`] error type.
403386
#[derive(Debug, Error)]
404387
#[error("yamux error: {0}")]

0 commit comments

Comments
 (0)