summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Forbes <tom@tomforb.es>2023-11-07 15:27:01 +0000
committerTom Forbes <tom@tomforb.es>2023-11-07 15:27:01 +0000
commitf68b8540f7cb71d6f9ea207176c674d3362c5913 (patch)
tree449c3437ebf2fdf04afcfabb8452004f273b6101
parent071ab01906fe34b45cad5d4e2b133cad9e109f39 (diff)
Fix windows build
-rw-r--r--pinger/src/lib.rs2
-rw-r--r--pinger/src/windows.rs5
2 files changed, 2 insertions, 5 deletions
diff --git a/pinger/src/lib.rs b/pinger/src/lib.rs
index cc9533a..9f863d9 100644
--- a/pinger/src/lib.rs
+++ b/pinger/src/lib.rs
@@ -177,7 +177,7 @@ pub fn ping_with_interval(
#[cfg(windows)]
{
let p = windows::WindowsPinger::new(interval, interface);
- return p.start::<windows::WindowsParser>(addr);
+ return p.start(addr);
}
#[cfg(unix)]
{
diff --git a/pinger/src/windows.rs b/pinger/src/windows.rs
index 83adfcf..69f7d61 100644
--- a/pinger/src/windows.rs
+++ b/pinger/src/windows.rs
@@ -25,10 +25,7 @@ impl Pinger for WindowsPinger {
}
}
- fn start<P>(&self, target: String) -> Result<mpsc::Receiver<PingResult>>
- where
- P: Parser,
- {
+ fn start(&self, target: String) -> Result<mpsc::Receiver<PingResult>> {
let interval = self.interval;
let parsed_ip: IpAddr = match target.parse() {
Err(_) => {