From 3ee1856083c0a5b4e95865eaed3ec081f12a23fe Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 9 May 2023 05:14:40 +0200 Subject: [PATCH] feat(yamux): remove deprecated items Related: #3647. Pull-Request: #3897. --- muxers/yamux/CHANGELOG.md | 4 ++++ muxers/yamux/src/lib.rs | 17 ----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index 4d0015aa..e4c72580 100644 --- a/muxers/yamux/CHANGELOG.md +++ b/muxers/yamux/CHANGELOG.md @@ -3,7 +3,11 @@ - Raise MSRV to 1.65. See [PR 3715]. +- Remove deprecated items. + See [PR 3897]. + [PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715 +[PR 3897]: https://github.com/libp2p/rust-libp2p/pull/3897 ## 0.43.1 diff --git a/muxers/yamux/src/lib.rs b/muxers/yamux/src/lib.rs index 64ae8de4..f398c022 100644 --- a/muxers/yamux/src/lib.rs +++ b/muxers/yamux/src/lib.rs @@ -40,9 +40,6 @@ use std::{ use thiserror::Error; use yamux::ConnectionError; -#[deprecated(note = "Import the `yamux` module instead and refer to this type as `yamux::Muxer`.")] -pub type Yamux = Muxer; - /// A Yamux connection. pub struct Muxer { /// The [`futures::stream::Stream`] of incoming substreams. @@ -113,9 +110,6 @@ where } } -#[deprecated(note = "Use `Result` instead.")] -pub type YamuxResult = Result; - impl StreamMuxer for Muxer where S: Stream> + Unpin, @@ -200,9 +194,6 @@ where } } -#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Config` instead.")] -pub type YamuxConfig = Config; - /// The yamux configuration. #[derive(Debug, Clone)] pub struct Config { @@ -250,11 +241,6 @@ impl WindowUpdateMode { } } -#[deprecated( - note = "Import the `yamux` module and refer to this type as `yamux::LocalConfig` instead." -)] -pub type YamuxLocalConfig = LocalConfig; - /// The yamux configuration for upgrading I/O resources which are ![`Send`]. #[derive(Clone)] pub struct LocalConfig(Config); @@ -396,9 +382,6 @@ where } } -#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Error` instead.")] -pub type YamuxError = Error; - /// The Yamux [`StreamMuxer`] error type. #[derive(Debug, Error)] #[error("yamux error: {0}")]