diff options
author | flip1995 <hello@philkrones.com> | 2019-08-27 10:41:23 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-08-28 18:18:40 +0200 |
commit | b8e9c17dc8a8c70f6b8ca555d14079895e191296 (patch) | |
tree | 4eaa158dbd1ff5eeaa4ebcd738fcd97c710c814b | |
parent | ed8f56aa462dabb0353e1d1c82ff38e21882b840 (diff) |
[Auto] bin/core/ref: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/core/imag-ref/src/main.rs | 6 | ||||
-rw-r--r-- | bin/core/imag-ref/src/ui.rs | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/core/imag-ref/src/main.rs b/bin/core/imag-ref/src/main.rs index 03a95ccf..b117aae8 100644 --- a/bin/core/imag-ref/src/main.rs +++ b/bin/core/imag-ref/src/main.rs @@ -121,7 +121,7 @@ fn deref(rt: &Runtime) { .and_then(|s| writeln!(outlock, "{}", s).map_err(Error::from)) .map_err_trace_exit_unwrap(); - let _ = rt.report_touched(&id).unwrap_or_exit(); + rt.report_touched(&id).unwrap_or_exit(); }, None => { error!("No entry for id '{}' found", id); @@ -159,7 +159,7 @@ fn remove(rt: &Runtime) { ask_bool(&format!("Delete ref from entry '{}'", id), None, &mut input, &mut output) .map_err_trace_exit_unwrap() { - let _ = entry.as_ref_with_hasher_mut::<DefaultHasher>() + entry.as_ref_with_hasher_mut::<DefaultHasher>() .remove_ref() .map_err_trace_exit_unwrap(); } else { @@ -208,7 +208,7 @@ fn list_dead(rt: &Runtime) { .map_err(Error::from) .map_err_trace_exit_unwrap(); - let _ = rt.report_touched(entry.get_location()).unwrap_or_exit(); + rt.report_touched(entry.get_location()).unwrap_or_exit(); } } } diff --git a/bin/core/imag-ref/src/ui.rs b/bin/core/imag-ref/src/ui.rs index 198aa908..2e5843cb 100644 --- a/bin/core/imag-ref/src/ui.rs +++ b/bin/core/imag-ref/src/ui.rs @@ -137,7 +137,6 @@ impl IdPathProvider for PathProvider { fn get_id_paths(subm: &ArgMatches) -> Result<Option<Vec<StoreId>>> { subm.values_of("ID") .map(|v| v - .into_iter() .map(PathBuf::from) .map(|pb| pb.into_storeid()) .collect::<Result<Vec<_>>>() |