[Auto] bin/core/edit: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
98ccb41f7f
commit
e010ef554d
2 changed files with 4 additions and 5 deletions
|
@ -73,7 +73,7 @@ fn main() {
|
||||||
})
|
})
|
||||||
.into_iter();
|
.into_iter();
|
||||||
|
|
||||||
StoreIdIterator::new(Box::new(sids.into_iter().map(Ok)))
|
StoreIdIterator::new(Box::new(sids.map(Ok)))
|
||||||
.into_get_iter(rt.store())
|
.into_get_iter(rt.store())
|
||||||
.trace_unwrap_exit()
|
.trace_unwrap_exit()
|
||||||
.map(|o| o.unwrap_or_else(|| {
|
.map(|o| o.unwrap_or_else(|| {
|
||||||
|
@ -82,15 +82,15 @@ fn main() {
|
||||||
}))
|
}))
|
||||||
.for_each(|mut entry| {
|
.for_each(|mut entry| {
|
||||||
if edit_header {
|
if edit_header {
|
||||||
let _ = entry
|
entry
|
||||||
.edit_header_and_content(&rt)
|
.edit_header_and_content(&rt)
|
||||||
.map_err_trace_exit_unwrap();
|
.map_err_trace_exit_unwrap();
|
||||||
} else if edit_header_only {
|
} else if edit_header_only {
|
||||||
let _ = entry
|
entry
|
||||||
.edit_header(&rt)
|
.edit_header(&rt)
|
||||||
.map_err_trace_exit_unwrap();
|
.map_err_trace_exit_unwrap();
|
||||||
} else {
|
} else {
|
||||||
let _ = entry
|
entry
|
||||||
.edit_content(&rt)
|
.edit_content(&rt)
|
||||||
.map_err_trace_exit_unwrap();
|
.map_err_trace_exit_unwrap();
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,6 @@ impl IdPathProvider for PathProvider {
|
||||||
fn get_ids(matches: &ArgMatches) -> Result<Option<Vec<StoreId>>> {
|
fn get_ids(matches: &ArgMatches) -> Result<Option<Vec<StoreId>>> {
|
||||||
matches.values_of("entry")
|
matches.values_of("entry")
|
||||||
.map(|v| v
|
.map(|v| v
|
||||||
.into_iter()
|
|
||||||
.map(PathBuf::from)
|
.map(PathBuf::from)
|
||||||
.map(|pb| pb.into_storeid())
|
.map(|pb| pb.into_storeid())
|
||||||
.collect::<Result<Vec<_>>>()
|
.collect::<Result<Vec<_>>>()
|
||||||
|
|
Loading…
Reference in a new issue