Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 committed Feb 2, 2025
1 parent 6d4ffb0 commit d68e5e5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/dns_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
6 changes: 3 additions & 3 deletions src/service_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions src/service_info.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d68e5e5

Please sign in to comment.