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

@@ -42,7 +42,7 @@ fn main() {
.get_matches();
let mut implementation = get_impl(value_t_or_exit!(matches, "day", u32));
let mut data: Box<io::Read> = match matches.value_of("input") {
let mut data: Box<dyn io::Read> = match matches.value_of("input") {
Some(filename) => Box::new(fs::File::open(filename).unwrap()),
None => Box::new(io::stdin()),
};