fix: cargo fmt

This commit is contained in:
DecDuck
2026-03-02 22:26:11 +11:00
parent 14346301a3
commit 10b66a9e32
2 changed files with 2 additions and 5 deletions
+1 -2
View File
@@ -145,8 +145,7 @@ pub async fn generate_manifest_rusty<T: Fn(String), V: Fn(f32)>(
let total_manifest_length = Arc::new(AtomicU64::new(0)); let total_manifest_length = Arc::new(AtomicU64::new(0));
// SAFETY: we .join_all() the futures using this // SAFETY: we .join_all() the futures using this
let backend: &'static (dyn VersionBackend + Send + Sync) = let backend: &'static (dyn VersionBackend + Send + Sync) = unsafe { mem::transmute(&*backend) };
unsafe { mem::transmute(&*backend) };
let mut futures: JoinSet<Result<(), anyhow::Error>> = JoinSet::new(); let mut futures: JoinSet<Result<(), anyhow::Error>> = JoinSet::new();
let (send_log, mut recieve_log) = tokio::sync::mpsc::channel(16); let (send_log, mut recieve_log) = tokio::sync::mpsc::channel(16);
+1 -3
View File
@@ -51,9 +51,7 @@ pub fn create_backend_constructor<'a>(
let file_extension = path.extension().and_then(|v| v.to_str())?; let file_extension = path.extension().and_then(|v| v.to_str())?;
if SUPPORTED_FILE_EXTENSIONS if SUPPORTED_FILE_EXTENSIONS.contains(&file_extension) {
.contains(&file_extension)
{
let buf = path.to_path_buf(); let buf = path.to_path_buf();
return Some(Box::new(move || Ok(Box::new(ZipVersionBackend::new(buf)?)))); return Some(Box::new(move || Ok(Box::new(ZipVersionBackend::new(buf)?))));
} }