diff options
| author | mo8it <mo8it@proton.me> | 2024-06-01 21:48:15 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-01 21:48:15 +0200 |
| commit | 611f9d8722593430d82187aebee9db5cc6952da1 (patch) | |
| tree | 1b2a0ef0728c27c1cfbd63135ed219775f6c1e64 /src/run.rs | |
| parent | 8e9c99ae5bfd9212c7d2a2c78186ab82133e69c7 (diff) | |
Check that all solutions run successfully
Diffstat (limited to 'src/run.rs')
| -rw-r--r-- | src/run.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,14 +4,14 @@ use std::io::{self, Write}; use crate::{ app_state::{AppState, ExercisesProgress}, - exercise::OUTPUT_CAPACITY, + exercise::{RunnableExercise, OUTPUT_CAPACITY}, terminal_link::TerminalFileLink, }; pub fn run(app_state: &mut AppState) -> Result<()> { let exercise = app_state.current_exercise(); let mut output = Vec::with_capacity(OUTPUT_CAPACITY); - let success = exercise.run(&mut output, app_state.target_dir())?; + let success = exercise.run_exercise(&mut output, app_state.target_dir())?; let mut stdout = io::stdout().lock(); stdout.write_all(&output)?; |
