aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index dcffd70..bf0da95 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,7 @@ use std::collections::LinkedList;
mod partition;
use partition::partition_days;
-const USAGE: &'static str = "
+const USAGE: &str = "
Usage: frotate [-k|-d] [-b <base>] <day>...
frotate --help
@@ -49,9 +49,8 @@ fn main() {
if args.flag_keep {
for days in parts.iter() {
- match days.front() {
- Some(d) => print!("{:?} ", d),
- None => {}
+ if let Some(d) = days.front() {
+ print!("{:?} ", d)
}
}
println!();