Print a newline after the retry question

This commit is contained in:
Roey Darwish Dror
2018-11-07 14:38:27 +02:00
committed by Your Name
parent 6108637477
commit 590d166bac
2 changed files with 6 additions and 2 deletions

View File

@@ -29,10 +29,12 @@ test_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo check --target %TARGET% &&
cargo check --target %TARGET% --release
cargo check --target %TARGET% --all-features &&
cargo check --target %TARGET% --all-features --release
)
before_deploy:
- cargo rustc --target %TARGET% --release --bin topgrade -- -C lto
- cargo rustc --target %TARGET% --release --bin topgrade --all-features -- -C lto
- ps: ci\before_deploy.ps1
deploy:

View File

@@ -78,7 +78,9 @@ impl Terminal {
.bold()
)).ok();
match self.term.read_char()? {
let answer = self.term.read_char()?;
println!();
match answer {
'y' | 'Y' => return Ok(true),
'n' | 'N' | '\r' | '\n' => return Ok(false),
_ => (),