From dc31c12ebc50d48c78563ea743548e9a61fb8141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Ker=C3=A4nen?= Date: Wed, 31 Dec 2014 09:56:56 +0200 Subject: [PATCH] Silenced some 'unused result' warnings --- src/inotify/mod.rs | 2 +- src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inotify/mod.rs b/src/inotify/mod.rs index 9a131e2b..f8161f60 100644 --- a/src/inotify/mod.rs +++ b/src/inotify/mod.rs @@ -34,7 +34,7 @@ impl INotifyWatcher { match e.kind { IoErrorKind::EndOfFile => break, _ => { - tx.send_opt(Event { + let _ = tx.send_opt(Event { path: None, op: Err(Error::Io(e)) }); diff --git a/src/lib.rs b/src/lib.rs index f3f0a332..58830fe0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ pub fn new(tx: Sender) -> Result { #[test] #[cfg(target_os = "linux")] fn new_inotify() { - let (tx, rx) = channel(); + let (tx, _) = channel(); let w: Result = Watcher::new(tx); match w { Ok(_) => assert!(true), @@ -64,7 +64,7 @@ fn new_inotify() { #[test] fn new_poll() { - let (tx, rx) = channel(); + let (tx, _) = channel(); let w: Result = Watcher::new(tx); match w { Ok(_) => assert!(true), @@ -74,7 +74,7 @@ fn new_poll() { #[test] fn new_recommended() { - let (tx, rx) = channel(); + let (tx, _) = channel(); let w: Result = Watcher::new(tx); match w { Ok(_) => assert!(true),