mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-11-08 09:09:17 +01:00
Fix typo
This commit is contained in:
parent
6255efe8b2
commit
62e92476e6
@ -43,12 +43,12 @@ enum WatchEvent {
|
|||||||
TerminalResize,
|
TerminalResize,
|
||||||
}
|
}
|
||||||
|
|
||||||
struct DebouceEventHandler {
|
struct DebounceEventHandler {
|
||||||
tx: Sender<WatchEvent>,
|
tx: Sender<WatchEvent>,
|
||||||
exercises: &'static [Exercise],
|
exercises: &'static [Exercise],
|
||||||
}
|
}
|
||||||
|
|
||||||
impl notify_debouncer_mini::DebounceEventHandler for DebouceEventHandler {
|
impl notify_debouncer_mini::DebounceEventHandler for DebounceEventHandler {
|
||||||
fn handle_event(&mut self, event: DebounceEventResult) {
|
fn handle_event(&mut self, event: DebounceEventResult) {
|
||||||
let event = match event {
|
let event = match event {
|
||||||
Ok(event) => {
|
Ok(event) => {
|
||||||
@ -140,7 +140,7 @@ pub fn watch(state_file: &mut StateFile, exercises: &'static [Exercise]) -> Resu
|
|||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
let mut debouncer = new_debouncer(
|
let mut debouncer = new_debouncer(
|
||||||
Duration::from_secs(1),
|
Duration::from_secs(1),
|
||||||
DebouceEventHandler {
|
DebounceEventHandler {
|
||||||
tx: tx.clone(),
|
tx: tx.clone(),
|
||||||
exercises,
|
exercises,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user