Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Commit 1cf9598

Browse files
author
Joshua Li
committed
address lint warnings
1 parent d60525a commit 1cf9598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn main() {
6969
return;
7070
}
7171

72-
let kata_opt = matches.opt_str("k").unwrap_or("0".to_string());
72+
let kata_opt = matches.opt_str("k").unwrap_or_else(|| "0".to_string());
7373
let mut num_kata: u8 = kata_opt.parse::<u8>().unwrap_or_else(|_| {
7474
eprintln!("Option -k, --kana must be an integer from 0 to 255.");
7575
process::exit(1);

0 commit comments

Comments
 (0)