Browse Source

refactoring: unify match error arms

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

5
src/main.rs

@ -35,10 +35,7 @@ fn main() -> Result<()> {
eprintln!("{}", msg) eprintln!("{}", msg)
} }
}, },
Err(ReadlineError::Interrupted) => {
break;
}
Err(ReadlineError::Eof) => {
Err(ReadlineError::Interrupted) | Err(ReadlineError::Eof) => {
break; break;
} }
Err(err) => { Err(err) => {

Loading…
Cancel
Save