From 0cc7ea4a204e9837e386f501c8df7deca0a0d770 Mon Sep 17 00:00:00 2001 From: Dusty Burwell Date: Wed, 2 Mar 2016 08:25:55 -0600 Subject: [PATCH] Clean up example code in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8150e466..0e2f394e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ fn main() { // Automatically select the best implementation for your platform. // You can also access each implementation directly e.g. INotifyWatcher. - let mut w: Result = Watcher::new(tx); + let w: Result = Watcher::new(tx); match w { Ok(mut watcher) => { @@ -47,7 +47,7 @@ fn main() { _ => println!("Recv.") } }, - Err(e) => println!("Error") + Err(_) => println!("Error") } } ```