From e26a0bc0bc008777273aeec590bf87c9e11285f9 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 7 Mar 2025 23:28:15 +0100 Subject: Fix lints on Windows --- src/file_op.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/file_op.rs b/src/file_op.rs index 1db4672..5ae9c32 100644 --- a/src/file_op.rs +++ b/src/file_op.rs @@ -1,12 +1,16 @@ //! Handlers for file upload and removal +#[cfg(target_family = "unix")] use std::collections::HashSet; + use std::io::ErrorKind; #[cfg(target_family = "unix")] use std::os::unix::fs::MetadataExt; use std::path::{Component, Path, PathBuf}; + +#[cfg(target_family = "unix")] use std::sync::Arc; use actix_web::{HttpRequest, HttpResponse, http::header, web}; @@ -18,6 +22,8 @@ use sha2::digest::DynDigest; use sha2::{Digest, Sha256, Sha512}; use tempfile::NamedTempFile; use tokio::io::AsyncWriteExt; + +#[cfg(target_family = "unix")] use tokio::sync::RwLock; use crate::{ -- cgit v1.2.3