Browse Source

style: cargo fmt

main
fdai7381 2 years ago
parent
commit
568609fd74
  1. 12
      src/main.rs

12
src/main.rs

@ -10,18 +10,18 @@ fn main() -> Result<()> {
match readline { match readline {
Ok(line) => { Ok(line) => {
println!("Line: {}", line); println!("Line: {}", line);
},
}
Err(ReadlineError::Interrupted) => { Err(ReadlineError::Interrupted) => {
println!("CTRL-C"); println!("CTRL-C");
break
},
break;
}
Err(ReadlineError::Eof) => { Err(ReadlineError::Eof) => {
println!("CTRL-D"); println!("CTRL-D");
break
},
break;
}
Err(err) => { Err(err) => {
println!("Error: {:?}", err); println!("Error: {:?}", err);
break
break;
} }
} }
} }

Loading…
Cancel
Save