From e29a63358d5f234c24c2af3a6cdc4f9896de55d2 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 10 Jun 2020 16:00:54 -0600 Subject: [PATCH] improvement: elide type of `reader` --- src/bin/hexyl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 7025a71..269598d 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -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()), };