std: lint appeasement for unused param in condition handler

This commit is contained in:
Jeff Olson 2013-08-20 17:54:37 -07:00
parent 05c8cc70c9
commit 0e9964189d

View File

@ -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);