Cosmetics

master
Benoît 2018-05-01 22:53:06 +02:00
parent 4cb09cd6a9
commit 5683a7d10c
1 changed files with 6 additions and 5 deletions

View File

@ -208,6 +208,7 @@ fn main() {
fn process<D: Digest + Default, R: Read>(reader: &mut R, name: &str) { fn process<D: Digest + Default, R: Read>(reader: &mut R, name: &str) {
let mut sh = D::default(); let mut sh = D::default();
let mut buffer = [0u8; BUFFER_SIZE]; let mut buffer = [0u8; BUFFER_SIZE];
loop { loop {
let n = match reader.read(&mut buffer) { let n = match reader.read(&mut buffer) {
Ok(n) => n, Ok(n) => n,