Skip to content

Commit

Permalink
Make DebouncedEvent be Clone, expose is_recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Nov 22, 2017
1 parent b5672b5 commit a91b5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub struct RawEvent {

unsafe impl Send for RawEvent {}

#[derive(Debug)]
#[derive(Debug, Clone)]
/// Event delivered when action occurs on a watched path in debounced mode
pub enum DebouncedEvent {
/// `NoticeWrite` is emitted immediately after the first write event for the path.
Expand Down Expand Up @@ -496,7 +496,7 @@ pub enum RecursiveMode {
}

impl RecursiveMode {
fn is_recursive(&self) -> bool {
pub fn is_recursive(&self) -> bool {
match *self {
RecursiveMode::Recursive => true,
RecursiveMode::NonRecursive => false,
Expand Down

0 comments on commit a91b5db

Please sign in to comment.