mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
improvement: elide type of reader
This commit is contained in:
1 parent
2bdf5d768f
commit
e29a63358d
1 file changed
+1
-1
+1
-1
@@ -112,7 +112,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
|
|
||||||
let stdin = io::stdin();
|
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)?),
|
Some(filename) => Input::File(File::open(filename)?),
|
||||||
None => Input::Stdin(stdin.lock()),
|
None => Input::Stdin(stdin.lock()),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user