diff --git a/src/io/sink/mod.rs b/src/io/sink/mod.rs index f010bdf..5b1750f 100644 --- a/src/io/sink/mod.rs +++ b/src/io/sink/mod.rs @@ -83,10 +83,10 @@ pub fn open_for_mkv( dest: &std::path::Path, size_hint: Option, ) -> std::io::Result> { - #[cfg(target_os = "linux")] - use crate::platform::fs_type::{FsType, detect}; #[cfg(not(target_os = "linux"))] use crate::platform::fs_type::detect; + #[cfg(target_os = "linux")] + use crate::platform::fs_type::{FsType, detect}; #[cfg(target_os = "linux")] { diff --git a/src/platform/fs_type/mod.rs b/src/platform/fs_type/mod.rs index 8a58af7..d0db78a 100644 --- a/src/platform/fs_type/mod.rs +++ b/src/platform/fs_type/mod.rs @@ -37,19 +37,19 @@ pub enum FsType { mod linux; #[cfg(target_os = "macos")] mod macos; -#[cfg(target_os = "windows")] -mod windows; #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] mod other; +#[cfg(target_os = "windows")] +mod windows; #[cfg(target_os = "linux")] use linux::detect_impl; #[cfg(target_os = "macos")] use macos::detect_impl; -#[cfg(target_os = "windows")] -use windows::detect_impl; #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] use other::detect_impl; +#[cfg(target_os = "windows")] +use windows::detect_impl; /// Best-effort classification of the filesystem under `path`. ///