Skip to content

Commit

Permalink
Making code prettier :P
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Aug 26, 2024
1 parent 74388d4 commit 0f71a15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
_ => (),
}
Expand Down
3 changes: 1 addition & 2 deletions src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down

0 comments on commit 0f71a15

Please sign in to comment.