Remove unused parameter

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2018-11-08 15:43:00 +01:00
parent 9cfa9fc399
commit c767e6239e

View file

@ -76,7 +76,7 @@ fn create_entry<'a>(diary: &'a Store, diaryname: &str, rt: &Runtime) -> FileLock
} }
}) })
.map(|timed| { .map(|timed| {
let time = create_id_from_clispec(&create, &diaryname, timed); let time = create_id_from_clispec(&create, timed);
diary.new_entry_at(&diaryname, &time) diary.new_entry_at(&diaryname, &time)
.context(err_msg("Store write error")) .context(err_msg("Store write error"))
.map_err(Error::from) .map_err(Error::from)
@ -93,7 +93,7 @@ fn create_entry<'a>(diary: &'a Store, diaryname: &str, rt: &Runtime) -> FileLock
} }
fn create_id_from_clispec(create: &ArgMatches, diaryname: &str, timed_type: Timed) -> NaiveDateTime { fn create_id_from_clispec(create: &ArgMatches, timed_type: Timed) -> NaiveDateTime {
use std::str::FromStr; use std::str::FromStr;
let dt = Local::now(); let dt = Local::now();