Skip to content

Commit

Permalink
chore(dns): remove deprecated symbols
Browse files Browse the repository at this point in the history
Pull-Request: #4739.
  • Loading branch information
thomaseizinger authored Oct 26, 2023
1 parent 357ed40 commit fb48fbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
6 changes: 3 additions & 3 deletions transports/dns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## 0.41.0 - unreleased

- Make `tokio::Transport::custom` and `async_std::Transport::custom` constructors infallible.
See [PR 4464].

[PR 4464]: https://github.com/libp2p/rust-libp2p/pull/4464
See [PR 4464](https://github.com/libp2p/rust-libp2p/pull/4464).
- Remove deprecated type-aliases.
See [PR 4739](https://github.com/libp2p/rust-libp2p/pull/4739).

## 0.40.1

Expand Down
14 changes: 0 additions & 14 deletions transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ pub mod async_std {
}
}

#[cfg(feature = "async-std")]
#[deprecated(note = "Use `async_std::Transport` instead.")]
pub type DnsConfig<T> = async_std::Transport<T>;

#[cfg(feature = "tokio")]
pub mod tokio {
use parking_lot::Mutex;
Expand Down Expand Up @@ -124,10 +120,6 @@ pub mod tokio {
}
}

#[cfg(feature = "tokio")]
#[deprecated(note = "Use `tokio::Transport` instead.")]
pub type TokioDnsConfig<T> = tokio::Transport<T>;

use async_trait::async_trait;
use futures::{future::BoxFuture, prelude::*};
use libp2p_core::{
Expand Down Expand Up @@ -184,9 +176,6 @@ pub struct Transport<T, R> {
resolver: R,
}

#[deprecated(note = "Use `async_std::Transport` or `tokio::Transport` instead.")]
pub type GenDnsConfig<T, R> = Transport<T, R>;

impl<T, R> libp2p_core::Transport for Transport<T, R>
where
T: libp2p_core::Transport + Send + Unpin + 'static,
Expand Down Expand Up @@ -414,9 +403,6 @@ pub enum Error<TErr> {
TooManyLookups,
}

#[deprecated(note = "Use `Error` instead.")]
pub type DnsErr<TErr> = Error<TErr>;

impl<TErr> fmt::Display for Error<TErr>
where
TErr: fmt::Display,
Expand Down

0 comments on commit fb48fbb

Please sign in to comment.