mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-06-30 08:18:45 +00:00
Refactor import statements and streamline output
cargo fmt changes
This commit is contained in:
parent
d754784ac0
commit
f6e1ed4cf2
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user