diff --git a/bin/domain/imag-diary/src/create.rs b/bin/domain/imag-diary/src/create.rs index af6d7fe9..b7da6c16 100644 --- a/bin/domain/imag-diary/src/create.rs +++ b/bin/domain/imag-diary/src/create.rs @@ -46,7 +46,7 @@ pub fn create(rt: &Runtime) { let mut entry = create_entry(rt.store(), &diaryname, rt); - let _ = rt.report_touched(entry.get_location()).unwrap_or_exit(); + rt.report_touched(entry.get_location()).unwrap_or_exit(); let res = if rt.cli().subcommand_matches("create").unwrap().is_present("no-edit") { debug!("Not editing new diary entry"); @@ -56,7 +56,7 @@ pub fn create(rt: &Runtime) { entry.edit_content(rt).context(err_msg("Diary edit error")).map_err(Error::from) }; - let _ = res.map_err_trace_exit_unwrap(); + res.map_err_trace_exit_unwrap(); info!("Ok!"); } diff --git a/bin/domain/imag-diary/src/delete.rs b/bin/domain/imag-diary/src/delete.rs index 9de65687..1b254c18 100644 --- a/bin/domain/imag-diary/src/delete.rs +++ b/bin/domain/imag-diary/src/delete.rs @@ -67,9 +67,9 @@ pub fn delete(rt: &Runtime) { return; } - let _ = rt.report_touched(&to_del_location).unwrap_or_exit(); + rt.report_touched(&to_del_location).unwrap_or_exit(); - let _ = rt + rt .store() .delete(to_del_location) .map_err_trace_exit_unwrap(); diff --git a/bin/domain/imag-diary/src/list.rs b/bin/domain/imag-diary/src/list.rs index 2719d11a..9c4593ec 100644 --- a/bin/domain/imag-diary/src/list.rs +++ b/bin/domain/imag-diary/src/list.rs @@ -55,7 +55,7 @@ pub fn list(rt: &Runtime) { .map(IntoStoreId::into_storeid) .trace_unwrap_exit() .for_each(|id| { - let _ = rt.report_touched(&id).unwrap_or_exit(); + rt.report_touched(&id).unwrap_or_exit(); if !rt.output_is_pipe() { writeln!(rt.stdout(), "{}", id).to_exit_code().unwrap_or_exit() diff --git a/bin/domain/imag-diary/src/view.rs b/bin/domain/imag-diary/src/view.rs index 23855dfd..9c77691f 100644 --- a/bin/domain/imag-diary/src/view.rs +++ b/bin/domain/imag-diary/src/view.rs @@ -45,7 +45,7 @@ pub fn view(rt: &Runtime) { })); let entries = entries.map(|e| { - let _ = rt.report_touched(e.get_location()).unwrap_or_exit(); + rt.report_touched(e.get_location()).unwrap_or_exit(); e });