Skip to content

Commit

Permalink
Prevents string allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Jan 24, 2023
1 parent d66b6cb commit d0de88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() {
#[cfg(debug_assertions)]
dotenv::dotenv().ok();

if std::env::args().nth(1) == Some("usage".to_string()) {
if std::env::args().nth(1).as_deref() == Some("usage") {
usage(&std::env::args().next().unwrap());

std::process::exit(0);
Expand Down

0 comments on commit d0de88f

Please sign in to comment.