Refactor import statements and streamline output

cargo fmt changes
This commit is contained in:
ActionsPerMinute 2026-06-15 09:38:57 +01:00 committed by GitHub
parent d754784ac0
commit f6e1ed4cf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,10 @@ use crate::{
clear_terminal, clear_terminal,
exercise::{OUTPUT_CAPACITY, RunnableExercise, solution_link_line}, exercise::{OUTPUT_CAPACITY, RunnableExercise, solution_link_line},
term::progress_bar, term::progress_bar,
watch::{InputPauseGuard, WatchEvent, terminal_event::InputEvent, terminal_event::terminal_event_handler}, watch::{
InputPauseGuard, WatchEvent, terminal_event::InputEvent,
terminal_event::terminal_event_handler,
},
}; };
const HEADING_ATTRIBUTES: Attributes = Attributes::none() const HEADING_ATTRIBUTES: Attributes = Attributes::none()
@ -262,10 +265,8 @@ impl<'a> WatchState<'a> {
} }
if self.auto_move { if self.auto_move {
stdout.write_all( stdout
"Auto-moving to the next exercise in 2 seconds…\n\n" .write_all("Auto-moving to the next exercise in 2 seconds…\n\n".as_bytes())?;
.as_bytes(),
)?;
} else { } else {
stdout.write_all( stdout.write_all(
"When done experimenting, enter `n` to move on to the next exercise 🦀\n\n" "When done experimenting, enter `n` to move on to the next exercise 🦀\n\n"