Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jul 2, 2023
1 parent a4ac5de commit 0f3731c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hash.rs
@@ -1,4 +1,5 @@
use std::alloc::{alloc, Layout};

use once_cell::sync::Lazy;

use crate::util::{ZOPFLI_MIN_MATCH, ZOPFLI_WINDOW_MASK, ZOPFLI_WINDOW_SIZE};
Expand Down Expand Up @@ -27,7 +28,8 @@ pub struct HashThing {

const EMPTY_HASH_THING: Lazy<Box<HashThing>> = Lazy::new(|| {
let mut prev_and_hashval = [SmallerHashThing {
prev: 0, hashval: None
prev: 0,
hashval: None,
}; ZOPFLI_WINDOW_SIZE];
for i in 0..(ZOPFLI_WINDOW_SIZE as u16) {
prev_and_hashval[i as usize].prev = i;
Expand Down

0 comments on commit 0f3731c

Please sign in to comment.