wip but use vector instead

master
Benoît Mauduit 2018-05-02 17:50:50 +02:00
parent cf4fb0529c
commit 02c71d8f3c
1 changed files with 3 additions and 2 deletions

View File

@ -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,
}