We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc --version
/Users/kkolyan/dev/rust/notify_crash
Cargo.toml
dependencies
notify: 6.1.1
main.rs
main.rs: ```rs use std::{path::PathBuf, sync::atomic::{AtomicBool, Ordering}}; use notify::{EventKind, FsEventWatcher, Watcher}; fn main() { let need_refresh_flag = AtomicBool::new(false); let mut watcher: FsEventWatcher = notify::recommended_watcher(move |event: notify::Result<notify::Event>| { if let Ok(event) = event { if let EventKind::Modify(_) | EventKind::Create(_) | EventKind::Remove(_) = event.kind { need_refresh_flag.store(true, Ordering::Relaxed); } } }).unwrap(); let path: PathBuf = Default::default(); let _ = watcher.unwatch(&path); println!("It's ok"); }
cargo run
Program normally returns
It crashes with segmentation fault
The text was updated successfully, but these errors were encountered:
notify
dfaust
No branches or pull requests
System details
rustc --version
: rustc 1.81.0 (eeb90cda1 2024-09-04)What you did (as detailed as you can)
/Users/kkolyan/dev/rust/notify_crash
directory, if that matters)Cargo.toml
dependencies
section:main.rs
cargo run
What you expected
Program normally returns
What happened
It crashes with segmentation fault
The text was updated successfully, but these errors were encountered: