Skip to content

Commit

Permalink
Removed unnecessary type in main
Browse files Browse the repository at this point in the history
  • Loading branch information
tapnisu committed Mar 16, 2024
1 parent d5a95d7 commit 8cd2166
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ use std::{
time::Duration,
};

fn main() -> Result<(), clap::Error> {
fn main() {
let cli = Cli::parse();
let mut cmd = Cli::command();

if let Err(err) = term_saver(&cli.text, cli.moves_per_second) {
cmd.error(ErrorKind::Io, err).exit()
}

Ok(())
}

fn term_saver(text: &str, moves_per_second: u32) -> Result<(), io::Error> {
Expand Down

0 comments on commit 8cd2166

Please sign in to comment.