summaryrefslogtreecommitdiffstats
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index f4ce318..291bebe 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -206,7 +206,7 @@ pub fn build() -> App<'static, 'static> {
fn validate_date_argument(arg: String) -> Result<(), String> {
use std::error::Error;
- if arg.starts_with("+") {
+ if arg.starts_with('+') {
validate_time_format(&arg).map_err(|err| err.description().to_string())
} else if &arg == "date" {
Result::Ok(())