mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-17 22:58:08 -05:00
Remove unneeded line
This commit is contained in:
parent
bdc6dad8de
commit
932bc25d88
3 changed files with 2 additions and 3 deletions
|
@ -152,7 +152,6 @@ fn main() -> Result<ExitCode> {
|
||||||
}
|
}
|
||||||
|
|
||||||
stdout.write_all(b"\n\n")?;
|
stdout.write_all(b"\n\n")?;
|
||||||
|
|
||||||
let pending = app_state.n_pending();
|
let pending = app_state.n_pending();
|
||||||
if pending == 1 {
|
if pending == 1 {
|
||||||
stdout.write_all(b"One exercise pending: ")?;
|
stdout.write_all(b"One exercise pending: ")?;
|
||||||
|
@ -167,6 +166,7 @@ fn main() -> Result<ExitCode> {
|
||||||
.current_exercise()
|
.current_exercise()
|
||||||
.terminal_file_link(&mut stdout)?;
|
.terminal_file_link(&mut stdout)?;
|
||||||
stdout.write_all(b"\n")?;
|
stdout.write_all(b"\n")?;
|
||||||
|
|
||||||
return Ok(ExitCode::FAILURE);
|
return Ok(ExitCode::FAILURE);
|
||||||
} else {
|
} else {
|
||||||
app_state.render_final_message(&mut stdout)?;
|
app_state.render_final_message(&mut stdout)?;
|
||||||
|
|
|
@ -29,6 +29,7 @@ pub fn run(app_state: &mut AppState) -> Result<ExitCode> {
|
||||||
.current_exercise()
|
.current_exercise()
|
||||||
.terminal_file_link(&mut stdout)?;
|
.terminal_file_link(&mut stdout)?;
|
||||||
stdout.write_all(b" with errors\n")?;
|
stdout.write_all(b" with errors\n")?;
|
||||||
|
|
||||||
return Ok(ExitCode::FAILURE);
|
return Ok(ExitCode::FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -281,8 +281,6 @@ impl<'a> WatchState<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn check_all_exercises(&mut self, stdout: &mut StdoutLock) -> Result<ExercisesProgress> {
|
pub fn check_all_exercises(&mut self, stdout: &mut StdoutLock) -> Result<ExercisesProgress> {
|
||||||
stdout.write_all(b"\n")?;
|
|
||||||
|
|
||||||
if let Some(first_pending_exercise_ind) = self.app_state.check_all_exercises(stdout)? {
|
if let Some(first_pending_exercise_ind) = self.app_state.check_all_exercises(stdout)? {
|
||||||
// Only change exercise if the current one is done.
|
// Only change exercise if the current one is done.
|
||||||
if self.app_state.current_exercise().done {
|
if self.app_state.current_exercise().done {
|
||||||
|
|
Loading…
Reference in a new issue