Fix other clippy warnings.

This commit is contained in:
2019-08-22 12:32:07 +02:00
parent 29b5dcdf62
commit 82dfff21e9
10 changed files with 31 additions and 37 deletions

View File

@@ -22,7 +22,7 @@ impl Day16 {
}
}
fn read(&mut self, reader: &mut BufRead, target: &mut [i32]) -> bool {
fn read(&mut self, reader: &mut impl BufRead, target: &mut [i32]) -> bool {
self.buf.clear();
if reader.read_line(&mut self.buf).is_err() {
return false;