diff --git a/src/dns_cache.rs b/src/dns_cache.rs index 1d5174d1..9fc05371 100644 --- a/src/dns_cache.rs +++ b/src/dns_cache.rs @@ -2,10 +2,12 @@ //! //! This is an internal implementation, not visible to the public API. -use crate::dns_parser::{DnsAddress, DnsPointer, DnsRecordBox, DnsSrv, RRType}; #[cfg(feature = "logging")] use crate::log::trace; -use crate::service_info::{split_sub_domain, valid_two_addrs_on_intf}; +use crate::{ + dns_parser::{DnsAddress, DnsPointer, DnsRecordBox, DnsSrv, RRType}, + service_info::{split_sub_domain, valid_two_addrs_on_intf}, +}; use if_addrs::Interface; use std::{ collections::{HashMap, HashSet}, diff --git a/src/service_daemon.rs b/src/service_daemon.rs index e98729f0..ff21b526 100644 --- a/src/service_daemon.rs +++ b/src/service_daemon.rs @@ -3497,10 +3497,10 @@ mod tests { HostnameResolutionEvent, ServiceDaemon, ServiceEvent, ServiceInfo, GROUP_ADDR_V4, MDNS_PORT, }; - use crate::dns_parser::{ - DnsOutgoing, DnsPointer, RRType, CLASS_IN, FLAGS_AA, FLAGS_QR_RESPONSE, + use crate::{ + dns_parser::{DnsOutgoing, DnsPointer, RRType, CLASS_IN, FLAGS_AA, FLAGS_QR_RESPONSE}, + service_daemon::check_hostname, }; - use crate::service_daemon::check_hostname; use std::{ net::{SocketAddr, SocketAddrV4}, time::Duration, diff --git a/src/service_info.rs b/src/service_info.rs index b9a2c50c..52e0c82c 100644 --- a/src/service_info.rs +++ b/src/service_info.rs @@ -1,9 +1,11 @@ //! Define `ServiceInfo` to represent a service and its operations. -use crate::dns_parser::{DnsRecordBox, DnsRecordExt, DnsSrv, RRType}; #[cfg(feature = "logging")] use crate::log::debug; -use crate::{Error, Result}; +use crate::{ + dns_parser::{DnsRecordBox, DnsRecordExt, DnsSrv, RRType}, + Error, Result, +}; use if_addrs::{IfAddr, Interface}; use std::{ cmp,