Skip to content

Commit

Permalink
Remove unnecessary bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Feb 25, 2020
1 parent 52b5c3b commit fcc3d6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,8 @@ where TErr: error::Error + 'static
}

async fn resolve_dns<T>(p: Protocol<'_>, suffix: Multiaddr) -> Result<Multiaddr, DnsErr<T::Error>>
where
T: Transport + Send + 'static,
T::Error: Send,
T::Dial: Send
where
T: Transport
{
match p {
Protocol::Dns4(ref name) | Protocol::Dns6(ref name) => {
Expand Down

0 comments on commit fcc3d6a

Please sign in to comment.