Skip to content

Commit

Permalink
Fix crossbeam-channel feature
Browse files Browse the repository at this point in the history
The feature was previously renamed from `crossbeam` to `crossbeam-channel`.
  • Loading branch information
dfaust committed Oct 25, 2024
1 parent 7c26617 commit e87b8dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ v4 commits split out to branch `v4_maintenance` starting with `4.0.16`
- CHANGE: move event type to notify-types crate [#559]
- CHANGE: flatten serialization of events and use camelCase [#558]
- CHANGE: remove internal use of crossbeam-channels [#569] [#610]
- CHANGE: rename feature `crossbeam` to `crossbeam-channels`
- CHANGE: upgrade mio to 1.0 [#623]
- FIX: prevent UB with illegal instruction for the windows backend [#604] [#607]
- FIX: on Linux report deleted directories correctly [#545]
Expand Down
4 changes: 2 additions & 2 deletions notify-debouncer-full/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
//!
//! The following crate features can be turned on or off in your cargo dependency config:
//!
//! - `crossbeam` passed down to notify, off by default
//! - `crossbeam-channel` passed down to notify, off by default
//! - `serialization-compat-6` passed down to notify, off by default
//!
//! # Caveats
Expand Down Expand Up @@ -124,7 +124,7 @@ where
}
}

#[cfg(feature = "crossbeam")]
#[cfg(feature = "crossbeam-channel")]
impl DebounceEventHandler for crossbeam_channel::Sender<DebounceEventResult> {
fn handle_event(&mut self, event: DebounceEventResult) {
let _ = self.send(event);
Expand Down
4 changes: 2 additions & 2 deletions notify-debouncer-mini/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//!
//! The following crate features can be turned on or off in your cargo dependency config:
//!
//! - `crossbeam` passed down to notify, off by default
//! - `crossbeam-channel` passed down to notify, off by default
//! - `serde` enables serde support for events, off by default
//! - `serialization-compat-6` passed down to notify, off by default
//!
Expand Down Expand Up @@ -152,7 +152,7 @@ where
}
}

#[cfg(feature = "crossbeam")]
#[cfg(feature = "crossbeam-channel")]
impl DebounceEventHandler for crossbeam_channel::Sender<DebounceEventResult> {
fn handle_event(&mut self, event: DebounceEventResult) {
let _ = self.send(event);
Expand Down

0 comments on commit e87b8dd

Please sign in to comment.