mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Fix other clippy warnings.
This commit is contained in:
@@ -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()),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user