fix clippy warnings for rustc 1.50

This commit is contained in:
Benjamin Fry
2021-02-17 23:19:59 -08:00
parent 26b842b7e9
commit 7a4b3b55c3
6 changed files with 9 additions and 1 deletions

View File

@@ -197,6 +197,7 @@ impl<C: DnsHandle<Error = ResolveError>, P: ConnectionProvider<Conn = C>> AsyncR
/// background task that runs resolutions for the `AsyncResolver`. See the
/// documentation for `AsyncResolver` for more information on how to use
/// the background future.
#[allow(clippy::unnecessary_wraps)]
pub(crate) fn new_with_conn(
config: ResolverConfig,
options: ResolverOpts,