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