mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 16:53:30 +02:00
Add terminal links
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use notify_debouncer_mini::{DebounceEventResult, DebouncedEventKind};
|
||||
use std::{path::Path, sync::mpsc::Sender};
|
||||
use std::sync::mpsc::Sender;
|
||||
|
||||
use super::WatchEvent;
|
||||
|
||||
pub struct DebounceEventHandler {
|
||||
pub tx: Sender<WatchEvent>,
|
||||
pub exercise_paths: &'static [&'static Path],
|
||||
pub exercise_paths: &'static [&'static str],
|
||||
}
|
||||
|
||||
impl notify_debouncer_mini::DebounceEventHandler for DebounceEventHandler {
|
||||
|
||||
+1
-5
@@ -136,11 +136,7 @@ When you are done experimenting, enter `n` or `next` to go to the next exercise
|
||||
)?;
|
||||
self.writer.write_fmt(format_args!(
|
||||
"{progress_bar}Current exercise: {}\n",
|
||||
self.app_state
|
||||
.current_exercise()
|
||||
.path
|
||||
.to_string_lossy()
|
||||
.bold(),
|
||||
self.app_state.current_exercise().terminal_link(),
|
||||
))?;
|
||||
|
||||
self.show_prompt()?;
|
||||
|
||||
Reference in New Issue
Block a user