Skip to content

Commit 87578f9

Browse files
chore(plaintext): remove deprecated symbols
Pull-Request: #4734.
1 parent 7ad37a2 commit 87578f9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

transports/plaintext/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- Migrate to `{In,Out}boundConnectionUpgrade` traits.
44
See [PR 4695](https://github.com/libp2p/rust-libp2p/pull/4695).
5+
- Remove deprecated type-aliases and make `Config::local_public_key` private.
6+
See [PR 4734](https://github.com/libp2p/rust-libp2p/pull/4734).
57

68
## 0.40.1
79

transports/plaintext/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,13 @@ mod proto {
4747
pub(crate) use self::structs::Exchange;
4848
}
4949

50-
#[deprecated(note = "Has been renamed to `Config`.")]
51-
pub type PlainText2Config = Config;
52-
53-
#[deprecated(note = "Has been renamed to `Output`.")]
54-
pub type PlainTextOutput<T> = Output<T>;
55-
5650
/// [`Config`] is an insecure connection handshake for testing purposes only.
5751
#[derive(Clone)]
5852
pub struct Config {
59-
#[deprecated(note = "Will be made private in the future, please use `Config::new` instead!")]
60-
pub local_public_key: identity::PublicKey,
53+
local_public_key: identity::PublicKey,
6154
}
6255

6356
impl Config {
64-
#[allow(deprecated)]
6557
pub fn new(identity: &identity::Keypair) -> Self {
6658
Self {
6759
local_public_key: identity.public(),

0 commit comments

Comments
 (0)