transports/dns/: Don't feature flag std::io import (#3027)

Functions like `parse_dnsaddr_txt` depend on the `std::io` import. Given
that the function is not feature flagged, compilation without features
fails.
This commit is contained in:
Max Inden 2022-10-14 16:55:50 +01:00 committed by GitHub
parent d530e5112c
commit b5612dc431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,6 @@ use libp2p_core::{
};
use parking_lot::Mutex;
use smallvec::SmallVec;
#[cfg(any(feature = "async-std", feature = "tokio"))]
use std::io;
use std::{
convert::TryFrom,