1
0
Fork 0

Cleanup by-ref

This commit is contained in:
Vivianne 2022-12-10 15:36:57 -08:00
parent 5f390df957
commit bffd0002c0

View file

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