spaces->tabs
parent
8354207c75
commit
e3eaeeec66
|
@ -29,8 +29,7 @@ fn exists(path: String) -> Result<(), String>
|
|||
|
||||
fn each_value<F>(opt: &clap::ArgMatches<'_>,
|
||||
name: &str,
|
||||
mut f: F)
|
||||
-> ResultS<()>
|
||||
mut f: F) -> ResultS<()>
|
||||
where F: FnMut(&str) -> ResultS<()>
|
||||
{
|
||||
if let Some(values) = opt.values_of(name) {
|
||||
|
@ -107,7 +106,6 @@ fn main() -> ResultS<()>
|
|||
|
||||
write!(&mut std::fs::File::create("dicks.txt").unwrap(), "{:#?}", ed);
|
||||
|
||||
/*
|
||||
use clap::clap_app;
|
||||
|
||||
let sub_data = clap_app! {
|
||||
|
|
|
@ -16,7 +16,7 @@ pub fn read(mut im: Image8,
|
|||
for _ in 0..im.w() {
|
||||
let idx = usize::from(b[p]);
|
||||
|
||||
im.cr.push(ok!(clut.get(idx), "invalid index")?.clone());
|
||||
im.cr.push(ok!(clut.get(idx), "bad index")?.clone());
|
||||
|
||||
p += 1;
|
||||
}
|
||||
|
@ -39,8 +39,7 @@ pub fn read(mut im: Image8,
|
|||
p += pp;
|
||||
|
||||
for &idx in &d {
|
||||
im.cr
|
||||
.push(ok!(clut.get(usize::from(idx)), "invalid index")?.clone());
|
||||
im.cr.push(ok!(clut.get(usize::from(idx)), "bad index")?.clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue