clean up the last bit of warnings

This commit is contained in:
Corey Richardson
2013-05-11 06:07:21 -04:00
committed by Tim Chevalier
parent ed41864464
commit a279d65102
9 changed files with 11 additions and 12 deletions

View File

@@ -389,7 +389,7 @@ Fails when attempting to read from a file that can't be opened.
*/
#[cfg(not(stage0))]
pub fn input(f: &fn(&str) -> bool) -> bool {
let mut i = FileInput::from_args();
let i = FileInput::from_args();
i.each_line(f)
}
@@ -413,7 +413,7 @@ Fails when attempting to read from a file that can't be opened.
*/
#[cfg(not(stage0))]
pub fn input_state(f: &fn(&str, FileInputState) -> bool) -> bool {
let mut i = FileInput::from_args();
let i = FileInput::from_args();
i.each_line_state(f)
}
@@ -433,7 +433,7 @@ Fails when attempting to read from a file that can't be opened.
*/
#[cfg(not(stage0))]
pub fn input_vec(files: ~[Option<Path>], f: &fn(&str) -> bool) -> bool {
let mut i = FileInput::from_vec(files);
let i = FileInput::from_vec(files);
i.each_line(f)
}
@@ -457,7 +457,7 @@ Fails when attempting to read from a file that can't be opened.
#[cfg(not(stage0))]
pub fn input_vec_state(files: ~[Option<Path>],
f: &fn(&str, FileInputState) -> bool) -> bool {
let mut i = FileInput::from_vec(files);
let i = FileInput::from_vec(files);
i.each_line_state(f)
}

View File

@@ -412,7 +412,7 @@ fn run_tests(opts: &TestOpts,
callback: @fn(e: TestEvent)) {
let filtered_tests = filter_tests(opts, tests);
let filtered_descs = filtered_tests.map(|t| t.desc);
let filtered_descs = filtered_tests.map(|t| copy t.desc);
callback(TeFiltered(filtered_descs));