Skip to content

Commit

Permalink
Fix formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ovillanova committed Aug 20, 2024
1 parent 3200eb7 commit 1d9ba6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clone_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ async fn file_checksum(file: &mut File) -> Result<HashSum, std::io::Error> {
// Check if file is a regular file or block device
#[cfg(unix)]
async fn is_block_dev(file: &File) -> Result<bool, std::io::Error> {
#[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)
Expand Down

0 comments on commit 1d9ba6a

Please sign in to comment.