diff --git a/src/clone_cmd.rs b/src/clone_cmd.rs index 699eb4e..4614fe6 100644 --- a/src/clone_cmd.rs +++ b/src/clone_cmd.rs @@ -41,12 +41,12 @@ async fn file_checksum(file: &mut File) -> Result { // Check if file is a regular file or block device #[cfg(unix)] async fn is_block_dev(file: &File) -> Result { + #[cfg(target_os = "android")] + use std::os::android::fs::MetadataExt; #[cfg(target_os = "linux")] use std::os::linux::fs::MetadataExt; #[cfg(target_os = "macos")] use std::os::macos::fs::MetadataExt; - #[cfg(target_os = "android")] - use std::os::android::fs::MetadataExt; let meta = file.metadata().await?; if meta.st_mode() & 0x6000 == 0x6000 { Ok(true)