Skip to content

Commit

Permalink
feat(yamux): remove deprecated items
Browse files Browse the repository at this point in the history
Related: #3647.

Pull-Request: #3897.
  • Loading branch information
thomaseizinger committed May 9, 2023
1 parent 3165b12 commit 3ee1856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 4 additions & 0 deletions muxers/yamux/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 0 additions & 17 deletions muxers/yamux/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S> = Muxer<S>;

/// A Yamux connection.
pub struct Muxer<S> {
/// The [`futures::stream::Stream`] of incoming substreams.
Expand Down Expand Up @@ -113,9 +110,6 @@ where
}
}

#[deprecated(note = "Use `Result<T, yamux::Error>` instead.")]
pub type YamuxResult<T> = Result<T, Error>;

impl<S> StreamMuxer for Muxer<S>
where
S: Stream<Item = Result<yamux::Stream, Error>> + Unpin,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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}")]
Expand Down

0 comments on commit 3ee1856

Please sign in to comment.