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