summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-07 04:59:22 +0200
committermo8it <mo8it@proton.me>2024-04-07 04:59:22 +0200
commitb0a475062445705853b4f861ee9e3135065f0660 (patch)
treeb7782712119ec7865a056c3626b52decb1f6b2fd /src/main.rs
parent4f69285375342951da36346f1a1b93f7903a362f (diff)
Implement "continue at"
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 34d1784..e82fc80 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -85,7 +85,7 @@ If you are just starting with Rustlings, run the command `rustlings init` to ini
exit(1);
}
- let state = State::read_or_default(&exercises);
+ let mut state = State::read_or_default(&exercises);
match args.command {
None | Some(Subcommands::Watch) => {
@@ -94,7 +94,7 @@ If you are just starting with Rustlings, run the command `rustlings init` to ini
// `Init` is handled above.
Some(Subcommands::Init) => (),
Some(Subcommands::List) => {
- list::list(&state, &exercises)?;
+ list::list(&mut state, &exercises)?;
}
Some(Subcommands::Run { name }) => {
let exercise = find_exercise(&name, &exercises)?;