Skip to content

Commit

Permalink
Silenced some 'unused result' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Detegr committed Dec 31, 2014
1 parent 0b29c60 commit dc31c12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/inotify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
});
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn new(tx: Sender<Event>) -> Result<RecommendedWatcher, Error> {
#[test]
#[cfg(target_os = "linux")]
fn new_inotify() {
let (tx, rx) = channel();
let (tx, _) = channel();
let w: Result<INotifyWatcher, Error> = Watcher::new(tx);
match w {
Ok(_) => assert!(true),
Expand All @@ -64,7 +64,7 @@ fn new_inotify() {

#[test]
fn new_poll() {
let (tx, rx) = channel();
let (tx, _) = channel();
let w: Result<PollWatcher, Error> = Watcher::new(tx);
match w {
Ok(_) => assert!(true),
Expand All @@ -74,7 +74,7 @@ fn new_poll() {

#[test]
fn new_recommended() {
let (tx, rx) = channel();
let (tx, _) = channel();
let w: Result<RecommendedWatcher, Error> = Watcher::new(tx);
match w {
Ok(_) => assert!(true),
Expand Down

0 comments on commit dc31c12

Please sign in to comment.