Ran cargo fmt

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-04 18:15:06 +11:00
parent 119f42e2ba
commit 6a951bd33d
4 changed files with 17 additions and 11 deletions

View File

@ -1,5 +1,9 @@
use std::{
collections::HashMap, fs::File, io::{BufRead, BufReader}, path::Path, thread
collections::HashMap,
fs::File,
io::{BufRead, BufReader},
path::Path,
thread,
};
#[cfg(unix)]
@ -73,11 +77,15 @@ pub fn generate_manifest(
let relative = file_path.strip_prefix(base_dir).unwrap();
let permission_object = file.try_clone().unwrap().metadata().unwrap().permissions();
let permissions = {
let mut perm = 0;
#[cfg(unix)]
let perm: u32;
#[cfg(target_family = "unix")]
{
perm = permission_object.mode();
}
#[cfg(not(target_family = "unix"))]
{
perm = 0
}
perm
};