summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:43:01 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:40 +0200
commit171757f5cabe5e2272190a11d53b8406cb3ca682 (patch)
tree8391cd8426929ec71cddb6005fce6ef976b8bcf6
parent5b4b6998751669da8706e203f288a38b5c505253 (diff)
[Auto] bin/core/diary: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/domain/imag-diary/src/create.rs4
-rw-r--r--bin/domain/imag-diary/src/delete.rs4
-rw-r--r--bin/domain/imag-diary/src/list.rs2
-rw-r--r--bin/domain/imag-diary/src/view.rs2
4 files changed, 6 insertions, 6 deletions
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
});