Skip to content

Commit

Permalink
Remove the interface from WindowsPinger
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Nov 9, 2023
1 parent 6a8c687 commit 41d37f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pinger/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ pub static RE: Lazy<Regex> = lazy_regex!(r"(?ix-u)time=(?P<ms>\d+)(?:\.(?P<ns>\d

pub struct WindowsPinger {
interval: Duration,
interface: Option<String>,
}

impl Pinger for WindowsPinger {
type Parser = WindowsParser;

fn new(interval: Duration, interface: Option<String>) -> Self {
fn new(interval: Duration, _interface: Option<String>) -> Self {
Self {
interval,
interface,
}
}

Expand Down

0 comments on commit 41d37f1

Please sign in to comment.