Cleanup by-ref
This commit is contained in:
parent
5f390df957
commit
bffd0002c0
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ use std::error::Error;
|
|||
use std::fmt::Display;
|
||||
use std::fs;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::io::{self, BufRead, Read};
|
||||
use std::io::{self, BufRead};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
mod parsing {
|
||||
|
@ -278,7 +278,6 @@ fn main() {
|
|||
let filename = "etc/p07.txt";
|
||||
let file = fs::File::open(filename).expect("Can't open file");
|
||||
let lines: Vec<String> = io::BufReader::new(file)
|
||||
.by_ref()
|
||||
.lines()
|
||||
.flatten()
|
||||
.collect();
|
||||
|
|
Loading…
Reference in a new issue