Skip to content

Commit

Permalink
fix(example): Iterator is not implemented for ProcessIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Umio-Yasuno authored Apr 4, 2024
1 parent b8d6545 commit 467617a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions execsnoop/examples/execsnoop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// SPDX-License-Identifier: MPL-2.0

fn main() {
let watcher = execsnoop::watch().unwrap();
let mut watcher = execsnoop::watch().unwrap();

for process in watcher {
while let Some(process) = watcher.next() {
println!("{:?}", process);
}
}

0 comments on commit 467617a

Please sign in to comment.