Skip to content

Commit fb48fbb

Browse files
chore(dns): remove deprecated symbols
Pull-Request: #4739.
1 parent 357ed40 commit fb48fbb

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

transports/dns/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## 0.41.0 - unreleased
22

33
- Make `tokio::Transport::custom` and `async_std::Transport::custom` constructors infallible.
4-
See [PR 4464].
5-
6-
[PR 4464]: https://github.com/libp2p/rust-libp2p/pull/4464
4+
See [PR 4464](https://github.com/libp2p/rust-libp2p/pull/4464).
5+
- Remove deprecated type-aliases.
6+
See [PR 4739](https://github.com/libp2p/rust-libp2p/pull/4739).
77

88
## 0.40.1
99

transports/dns/src/lib.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ pub mod async_std {
8888
}
8989
}
9090

91-
#[cfg(feature = "async-std")]
92-
#[deprecated(note = "Use `async_std::Transport` instead.")]
93-
pub type DnsConfig<T> = async_std::Transport<T>;
94-
9591
#[cfg(feature = "tokio")]
9692
pub mod tokio {
9793
use parking_lot::Mutex;
@@ -124,10 +120,6 @@ pub mod tokio {
124120
}
125121
}
126122

127-
#[cfg(feature = "tokio")]
128-
#[deprecated(note = "Use `tokio::Transport` instead.")]
129-
pub type TokioDnsConfig<T> = tokio::Transport<T>;
130-
131123
use async_trait::async_trait;
132124
use futures::{future::BoxFuture, prelude::*};
133125
use libp2p_core::{
@@ -184,9 +176,6 @@ pub struct Transport<T, R> {
184176
resolver: R,
185177
}
186178

187-
#[deprecated(note = "Use `async_std::Transport` or `tokio::Transport` instead.")]
188-
pub type GenDnsConfig<T, R> = Transport<T, R>;
189-
190179
impl<T, R> libp2p_core::Transport for Transport<T, R>
191180
where
192181
T: libp2p_core::Transport + Send + Unpin + 'static,
@@ -414,9 +403,6 @@ pub enum Error<TErr> {
414403
TooManyLookups,
415404
}
416405

417-
#[deprecated(note = "Use `Error` instead.")]
418-
pub type DnsErr<TErr> = Error<TErr>;
419-
420406
impl<TErr> fmt::Display for Error<TErr>
421407
where
422408
TErr: fmt::Display,

0 commit comments

Comments
 (0)