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 +}