mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 16:53:30 +02:00
Show file link on reset command
This commit is contained in:
+2
-4
@@ -334,12 +334,10 @@ impl AppState {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn reset_current_exercise(&mut self) -> Result<&str> {
|
||||
pub fn reset_current_exercise(&mut self) -> Result<()> {
|
||||
self.set_pending(self.current_exercise_ind)?;
|
||||
let exercise = self.current_exercise();
|
||||
self.reset(self.current_exercise_ind, exercise.path)?;
|
||||
|
||||
Ok(exercise.path)
|
||||
self.reset(self.current_exercise_ind, exercise.path)
|
||||
}
|
||||
|
||||
// Reset the exercise by index and return its name.
|
||||
|
||||
Reference in New Issue
Block a user