mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +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 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()),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user