diff options
| author | Corey Richardson <corey@octayn.net> | 2013-05-11 06:07:21 -0400 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-05-11 20:36:47 -0700 |
| commit | a279d6510251ebd3956c74ffe4b12bd49074da9c (patch) | |
| tree | 71fea68bf5ce3c9fb79aa5baf1cfbfa6ef1aa8d7 /src/libstd/fileinput.rs | |
| parent | ed4186446492e141a4dc37829dc9599133d00dd0 (diff) | |
| download | rust-a279d6510251ebd3956c74ffe4b12bd49074da9c.tar.gz rust-a279d6510251ebd3956c74ffe4b12bd49074da9c.zip | |
clean up the last bit of warnings
Diffstat (limited to 'src/libstd/fileinput.rs')
| -rw-r--r-- | src/libstd/fileinput.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/fileinput.rs b/src/libstd/fileinput.rs index 4e205b50014..c3622fad53b 100644 --- a/src/libstd/fileinput.rs +++ b/src/libstd/fileinput.rs @@ -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) } |
