Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Nov 7, 2023
1 parent 071ab01 commit f68b854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pinger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
{
Expand Down
5 changes: 1 addition & 4 deletions pinger/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {
Expand Down

0 comments on commit f68b854

Please sign in to comment.