Skip to content

Commit 0f71a15

Browse files
committed
Making code prettier :P
1 parent 74388d4 commit 0f71a15

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ fn main() -> Result<()> {
7171
}
7272

7373
match args.command {
74-
Some(Subcommands::Init) => {
75-
return init::init().context("Initialization failed");
76-
}
74+
Some(Subcommands::Init) => return init::init().context("Initialization failed"),
7775
Some(Subcommands::Dev(dev_command)) => return dev_command.run(),
7876
_ => (),
7977
}

src/term.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ pub fn clear_terminal(stdout: &mut StdoutLock) -> io::Result<()> {
153153
pub fn press_enter_prompt(stdout: &mut StdoutLock) -> io::Result<()> {
154154
stdout.flush()?;
155155
io::stdin().lock().read_until(b'\n', &mut Vec::new())?;
156-
stdout.write_all(b"\n")?;
157-
Ok(())
156+
stdout.write_all(b"\n")
158157
}
159158

160159
pub fn terminal_file_link<'a>(

0 commit comments

Comments
 (0)