Improve QoC

Signed-off-by: DecDuck <declanahofmeyr@gmail.com>
This commit is contained in:
alessiodam
2024-10-31 13:54:21 +01:00
committed by DecDuck
parent 83ce8356a3
commit 119f42e2ba
5 changed files with 27 additions and 28 deletions

View File

@ -1,11 +1,10 @@
use std::{
collections::HashMap, fs::File, hash::Hasher, io::{BufRead, BufReader}, path::Path, thread
collections::HashMap, fs::File, io::{BufRead, BufReader}, path::Path, thread
};
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
use gxhash::{gxhash128, GxHasher};
use napi::{
threadsafe_function::{ErrorStrategy, ThreadsafeFunction, ThreadsafeFunctionCallMode},
Error, JsFunction,
@ -85,7 +84,7 @@ pub fn generate_manifest(
let mut reader = BufReader::with_capacity(CHUNK_SIZE, file);
let mut chunk_data = ChunkData {
permissions: permissions,
permissions,
ids: Vec::new(),
checksums: Vec::new(),
lengths: Vec::new(),
@ -133,5 +132,5 @@ pub fn generate_manifest(
);
});
return Ok(());
Ok(())
}