diff options
author | Kelvin Zhang <zhangxp1998@gmail.com> | 2020-01-08 12:53:17 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangxp1998@gmail.com> | 2020-01-08 13:57:30 -0500 |
commit | 33fb8440b1f9c0ec45cfc0c3b6b0ea5c457ade6e (patch) | |
tree | 169311c6c51757878cfdabb5fc2eb6eb631d6abf | |
parent | 6d2093ba807523465891432a46f6364588183536 (diff) |
Fix clippy warning on Mac
-rw-r--r-- | src/os/lsof_utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/lsof_utils.rs b/src/os/lsof_utils.rs index 584acab..17b9781 100644 --- a/src/os/lsof_utils.rs +++ b/src/os/lsof_utils.rs @@ -123,12 +123,12 @@ impl RawConnection { } } -pub fn get_connections<'a>() -> RawConnections { +pub fn get_connections() -> RawConnections { let content = run(&["-n", "-P", "-i4", "+c", "0"]); RawConnections::new(content) } -fn run<'a, I, S>(args: I) -> String +fn run<I, S>(args: I) -> String where I: IntoIterator<Item = S>, S: AsRef<OsStr>, |