Skip to content

Commit

Permalink
fixed compilation error
Browse files Browse the repository at this point in the history
seems there was excess parameter in new_debouncer() func, here is usage
example:

https://github.com/notify-rs/notify/blob/3df0f65152c8585cfb29d231c880b86b9164dcfd/examples/debouncer_mini.rs#L36
  • Loading branch information
ink-splatters committed May 31, 2024
1 parent 64af131 commit 5bddaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launchk/src/launchd/plist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub const SYSTEM_LAUNCH_DAEMONS: &str = "/System/Library/LaunchDaemons";

async fn fsnotify_subscriber() {
let (tx, rx): (Sender<DebounceEventResult>, Receiver<DebounceEventResult>) = channel();
let mut debouncer = new_debouncer(Duration::from_secs(5), None, tx).unwrap();
let mut debouncer = new_debouncer(Duration::from_secs(5), tx).unwrap();
let watcher = debouncer.watcher();

// Register plist paths
Expand Down

0 comments on commit 5bddaf3

Please sign in to comment.