wip but use vector instead
parent
cf4fb0529c
commit
02c71d8f3c
|
@ -2,6 +2,7 @@ extern crate clap;
|
||||||
extern crate term;
|
extern crate term;
|
||||||
extern crate sha2;
|
extern crate sha2;
|
||||||
extern crate walkdir;
|
extern crate walkdir;
|
||||||
|
extern crate generic_array;
|
||||||
|
|
||||||
use sha2::{Sha256, Digest};
|
use sha2::{Sha256, Digest};
|
||||||
|
|
||||||
|
@ -90,8 +91,8 @@ impl Args {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct FileToProcess<N> {
|
struct FileToProcess<N: ArrayLength<u8>> {
|
||||||
hash: [u8; N],
|
hash: GenericArray<u8,N>,
|
||||||
name: String,
|
name: String,
|
||||||
realpath: String,
|
realpath: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue