Skip to content

Commit b2c32e1

Browse files
committed
Merge pull request #52 from dustyburwell/patch-1
Clean up example code in README
2 parents 219b072 + 0cc7ea4 commit b2c32e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn main() {
3333

3434
// Automatically select the best implementation for your platform.
3535
// You can also access each implementation directly e.g. INotifyWatcher.
36-
let mut w: Result<RecommendedWatcher, Error> = Watcher::new(tx);
36+
let w: Result<RecommendedWatcher, Error> = Watcher::new(tx);
3737

3838
match w {
3939
Ok(mut watcher) => {
@@ -47,7 +47,7 @@ fn main() {
4747
_ => println!("Recv.")
4848
}
4949
},
50-
Err(e) => println!("Error")
50+
Err(_) => println!("Error")
5151
}
5252
}
5353
```

0 commit comments

Comments
 (0)