diff options
author | Tom Forbes <tom@tomforb.es> | 2023-11-09 15:03:11 +0000 |
---|---|---|
committer | Tom Forbes <tom@tomforb.es> | 2023-11-09 15:03:11 +0000 |
commit | 41d37f15144e8642bb3473c70e36bf2d9c5ca073 (patch) | |
tree | 1f7e91168e87327a7e43f2d77ac64f8d657be48b | |
parent | 6a8c687a2204238fa58f93c8962b9a8a70adf8c1 (diff) |
Remove the interface from WindowsPinger
-rw-r--r-- | pinger/src/windows.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pinger/src/windows.rs b/pinger/src/windows.rs index 69f7d61..0bb8f71 100644 --- a/pinger/src/windows.rs +++ b/pinger/src/windows.rs @@ -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, } } |