1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-18 11:31:35 +02:00

Making code prettier :P

This commit is contained in:
mo8it 2024-08-26 22:03:09 +02:00
parent 74388d4bf4
commit 0f71a150ff
2 changed files with 2 additions and 5 deletions

View File

@ -71,9 +71,7 @@ fn main() -> Result<()> {
}
match args.command {
Some(Subcommands::Init) => {
return init::init().context("Initialization failed");
}
Some(Subcommands::Init) => return init::init().context("Initialization failed"),
Some(Subcommands::Dev(dev_command)) => return dev_command.run(),
_ => (),
}

View File

@ -153,8 +153,7 @@ pub fn clear_terminal(stdout: &mut StdoutLock) -> io::Result<()> {
pub fn press_enter_prompt(stdout: &mut StdoutLock) -> io::Result<()> {
stdout.flush()?;
io::stdin().lock().read_until(b'\n', &mut Vec::new())?;
stdout.write_all(b"\n")?;
Ok(())
stdout.write_all(b"\n")
}
pub fn terminal_file_link<'a>(