Skip to content

Commit

Permalink
docs(dns): remove since attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsht committed Sep 21, 2023
1 parent fde32f3 commit eb89f88
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ mod config;
pub use config::async_std;

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

#[cfg(feature = "tokio")]
pub use config::tokio;

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

use async_trait::async_trait;
Expand Down Expand Up @@ -130,10 +130,7 @@ pub struct Config<T, R> {
resolver: R,
}

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

impl<T, R> Transport for Config<T, R>
Expand Down Expand Up @@ -360,7 +357,7 @@ pub enum Error<TErr> {
TooManyLookups,
}

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

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

0 comments on commit eb89f88

Please sign in to comment.