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