From 1e60631006a08cba3ed0dff2ad8e74582bcd014e Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Thu, 19 Jan 2023 13:36:16 +0100 Subject: [PATCH] refactoring: unify match error arms --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index c627e9d..e63c625 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,10 +35,7 @@ fn main() -> Result<()> { eprintln!("{}", msg) } }, - Err(ReadlineError::Interrupted) => { - break; - } - Err(ReadlineError::Eof) => { + Err(ReadlineError::Interrupted) | Err(ReadlineError::Eof) => { break; } Err(err) => {