diff options
| author | mo8it <mo8it@proton.me> | 2024-10-14 01:28:34 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-10-14 01:28:34 +0200 |
| commit | 932bc25d8824e18debc91e5f25f022e8d066bcf8 (patch) | |
| tree | b7a9c18c00383d7a8457a327dc2bb81b94908a1f | |
| parent | bdc6dad8de2d3b47e33098fd55956ba03b131b27 (diff) | |
Remove unneeded line
| -rw-r--r-- | src/main.rs | 2 | ||||
| -rw-r--r-- | src/run.rs | 1 | ||||
| -rw-r--r-- | src/watch/state.rs | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 5616d26..c8bcd2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,7 +152,6 @@ fn main() -> Result<ExitCode> { } stdout.write_all(b"\n\n")?; - let pending = app_state.n_pending(); if pending == 1 { stdout.write_all(b"One exercise pending: ")?; @@ -167,6 +166,7 @@ fn main() -> Result<ExitCode> { .current_exercise() .terminal_file_link(&mut stdout)?; stdout.write_all(b"\n")?; + return Ok(ExitCode::FAILURE); } else { app_state.render_final_message(&mut stdout)?; @@ -29,6 +29,7 @@ pub fn run(app_state: &mut AppState) -> Result<ExitCode> { .current_exercise() .terminal_file_link(&mut stdout)?; stdout.write_all(b" with errors\n")?; + return Ok(ExitCode::FAILURE); } diff --git a/src/watch/state.rs b/src/watch/state.rs index 8b58e31..0ac758c 100644 --- a/src/watch/state.rs +++ b/src/watch/state.rs @@ -281,8 +281,6 @@ impl<'a> WatchState<'a> { } 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)? { // Only change exercise if the current one is done. if self.app_state.current_exercise().done { |
