From 568609fd74946f7caaca131293b3674753bc509c Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Mon, 16 Jan 2023 21:10:49 +0100 Subject: [PATCH] style: cargo fmt --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index ab28964..ce2ebde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,21 +10,21 @@ fn main() -> Result<()> { match readline { Ok(line) => { println!("Line: {}", line); - }, + } Err(ReadlineError::Interrupted) => { println!("CTRL-C"); - break - }, + break; + } Err(ReadlineError::Eof) => { println!("CTRL-D"); - break - }, + break; + } Err(err) => { println!("Error: {:?}", err); - break + break; } } } Ok(()) -} \ No newline at end of file +}