mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Checker fixes
This commit is contained in:
parent
3e52e56a2a
commit
cbdc96e6cb
@ -26,9 +26,8 @@ fn main() {
|
||||
let mut buffered_file_writer = BufWriter::new(output_file.ok().unwrap());
|
||||
|
||||
let mut line_number = 1;
|
||||
let mut lines = buffered_input_file.lines();
|
||||
|
||||
for line in lines {
|
||||
for line in buffered_input_file.lines() {
|
||||
if let Ok(line) = line {
|
||||
let write_result =buffered_file_writer.write(format!("Line {} : {}\n", line_number, line).as_bytes());
|
||||
if write_result.is_err() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user