spaces->tabs

master
an 2019-07-05 23:21:11 -04:00
parent 8354207c75
commit e3eaeeec66
100 changed files with 8587 additions and 8590 deletions

View File

@ -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! {

View File

@ -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());
}
}