Skip to content

Commit

Permalink
Merge pull request #32 from durka/watcher-sized
Browse files Browse the repository at this point in the history
Add Sized bound to Watcher (see RFC 1214) to fix #29
  • Loading branch information
passcod committed Oct 6, 2015
2 parents 99a6c19 + 4e38574 commit 521bba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub enum Error {
WatchNotFound,
}

pub trait Watcher {
pub trait Watcher: Sized {
fn new(Sender<Event>) -> Result<Self, Error>;
fn watch<P: AsRef<Path>>(&mut self, P) -> Result<(), Error>;
fn unwatch<P: AsRef<Path>>(&mut self, P) -> Result<(), Error>;
Expand Down

0 comments on commit 521bba4

Please sign in to comment.