fix: cargo fmt
This commit is contained in:
@@ -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));
|
||||
|
||||
// SAFETY: we .join_all() the futures using this
|
||||
let backend: &'static (dyn VersionBackend + Send + Sync) =
|
||||
unsafe { mem::transmute(&*backend) };
|
||||
let backend: &'static (dyn VersionBackend + Send + Sync) = unsafe { mem::transmute(&*backend) };
|
||||
|
||||
let mut futures: JoinSet<Result<(), anyhow::Error>> = JoinSet::new();
|
||||
let (send_log, mut recieve_log) = tokio::sync::mpsc::channel(16);
|
||||
|
||||
@@ -51,9 +51,7 @@ pub fn create_backend_constructor<'a>(
|
||||
|
||||
let file_extension = path.extension().and_then(|v| v.to_str())?;
|
||||
|
||||
if SUPPORTED_FILE_EXTENSIONS
|
||||
.contains(&file_extension)
|
||||
{
|
||||
if SUPPORTED_FILE_EXTENSIONS.contains(&file_extension) {
|
||||
let buf = path.to_path_buf();
|
||||
return Some(Box::new(move || Ok(Box::new(ZipVersionBackend::new(buf)?))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user