From 0e9964189db9feb5bd1f35a2690954008d95cdb0 Mon Sep 17 00:00:00 2001 From: Jeff Olson Date: Tue, 20 Aug 2013 17:54:37 -0700 Subject: [PATCH] std: lint appeasement for unused param in condition handler --- src/libstd/rt/io/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rt/io/file.rs b/src/libstd/rt/io/file.rs index edc2953a4dd..23860ca885a 100644 --- a/src/libstd/rt/io/file.rs +++ b/src/libstd/rt/io/file.rs @@ -238,7 +238,7 @@ fn file_test_unlinking_invalid_path_should_raise_condition_impl() { do run_in_newsched_task { let filename = &Path("./another_file_that_does_not_exist.txt"); let mut called = false; - do io_error::cond.trap(|e| { + do io_error::cond.trap(|_| { called = true; }).inside { FileStream::unlink(filename);