Skip to content

Commit f3e227a

Browse files
author
rzmk
committed
refactor: fix lint checks by cargo clippy
1 parent 07e0333 commit f3e227a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212

1313
// If a message was provided, run the commands in succession
1414
if let Some(message) = &cli.message {
15-
orchestrate_commit(&cli, &message);
15+
orchestrate_commit(&cli, message);
1616
return;
1717
}
1818

@@ -71,7 +71,6 @@ fn main() {
7171
}
7272
_ => {
7373
println!("Exiting");
74-
return;
7574
}
7675
}
7776
}

src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ use std::process::Command;
55
pub fn orchestrate_commit(cli: &Cli, message: &str) {
66
if cli.add {
77
println!("Running git add -A");
8-
run(&cli, "git", &["add", "-A"]);
8+
run(cli, "git", &["add", "-A"]);
99
}
1010

1111
println!("Running git commit -m \"{}\"", message);
12-
run(&cli, "git", &["commit", "-m", message]);
12+
run(cli, "git", &["commit", "-m", message]);
1313

1414
if cli.push {
1515
println!("Running git push");
16-
run(&cli, "git", &["push"]);
16+
run(cli, "git", &["push"]);
1717
}
1818

1919
println!("Done 🎉");

0 commit comments

Comments
 (0)