fix: clippy errors with stable toolchain and default features (#1553)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tunglies
2025-11-07 20:08:39 +08:00
committed by GitHub
parent 89cc75f674
commit 55b93454dc
9 changed files with 32 additions and 35 deletions
+2 -5
View File
@@ -130,11 +130,8 @@ impl DNSTunnelConnector {
for record in response.iter() {
let parsed_record = Self::handle_one_srv_record(record, protocol);
tracing::info!(?parsed_record, ?srv_domain, "parsed_record");
if parsed_record.is_err() {
eprintln!(
"got invalid srv record {:?}",
parsed_record.as_ref().unwrap_err()
);
if let Err(e) = &parsed_record {
eprintln!("got invalid srv record {:?}", e);
continue;
}
responses.insert(parsed_record.unwrap());