improvement: elide type of reader

This commit is contained in:
Erich Gubler authored and David Peter committed 2020-06-17 18:05:42 +02:00
1 parent 2bdf5d768f
commit e29a63358d
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ fn run() -> Result<(), AnyhowError> {
let stdin = io::stdin();
let mut reader: Input = match matches.value_of("FILE") {
let mut reader = match matches.value_of("FILE") {
Some(filename) => Input::File(File::open(filename)?),
None => Input::Stdin(stdin.lock()),
};