mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-29 02:03:29 +00:00
Apply pedantic Clippy lints
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ impl<'a> WatchState<'a> {
|
||||
watch_event_sender,
|
||||
terminal_event_unpause_receiver,
|
||||
manual_run,
|
||||
)
|
||||
);
|
||||
})
|
||||
.context("Failed to spawn a thread to handle terminal events")?;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ pub fn terminal_event_handler(
|
||||
// Pause input until quitting the confirmation prompt.
|
||||
if unpause_receiver.recv().is_err() {
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ pub fn terminal_event_handler(
|
||||
return;
|
||||
}
|
||||
}
|
||||
Ok(Event::FocusGained | Event::FocusLost | Event::Mouse(_)) => continue,
|
||||
Ok(Event::FocusGained | Event::FocusLost | Event::Mouse(_)) => (),
|
||||
Err(e) => break WatchEvent::TerminalEventErr(e),
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user