[Auto] bin/core/ref: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
ed8f56aa46
commit
b8e9c17dc8
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<_>>>()
|
||||
|
|
Loading…
Reference in a new issue