Browse Source

refactoring: unify match error arms

main
fdai7451 2 years ago
parent
commit
615eacc8f0
  1. 5
      src/main.rs

5
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) => {

Loading…
Cancel
Save