From 693ec5f3f642eebd07056a715ff94dbe932e1444 Mon Sep 17 00:00:00 2001 From: bohan Date: Mon, 11 Sep 2023 22:26:10 +0800 Subject: [PATCH] fix: use single import for `Host` and `Run` --- src/nmap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nmap.rs b/src/nmap.rs index 52367a6..4dc9639 100644 --- a/src/nmap.rs +++ b/src/nmap.rs @@ -462,7 +462,7 @@ mod parser { "##; let p_host: parser::Host = serde_xml_rs::deserialize(s.as_bytes()).unwrap(); - let host: Host = p_host.into(); + let host: super::super::Host = p_host.into(); assert_that(&host.is_sane()).is_err(); } @@ -499,7 +499,7 @@ mod parser { "##; let p_host: parser::Host = serde_xml_rs::deserialize(s.as_bytes()).unwrap(); - let host: Host = p_host.into(); + let host: super::super::Host = p_host.into(); assert_that(&host.is_sane()).is_err(); } @@ -515,7 +515,7 @@ mod parser { fn no_dd_data_is_insane() { let s = NMAP_NO_DD_DATA; let p_run: parser::Run = serde_xml_rs::deserialize(s.as_bytes()).unwrap(); - let nmaprun: Run = p_run.into(); + let nmaprun: super::super::Run = p_run.into(); assert_that(&nmaprun.is_sane()).is_err(); }