diff options
-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>, |