Browse Source

style: cargo fmt

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

14
src/main.rs

@ -10,21 +10,21 @@ 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;
} }
} }
} }
Ok(()) Ok(())
}
}
Loading…
Cancel
Save