From 02c71d8f3ccf29db46a58b4b5ebf8ec32d53419f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Mauduit?= Date: Wed, 2 May 2018 17:50:50 +0200 Subject: [PATCH] wip but use vector instead --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 49cceb0..382c6df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 { - hash: [u8; N], +struct FileToProcess> { + hash: GenericArray, name: String, realpath: String, }