From baa789852dc329434ac0b83fd0fdc13c45195058 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Wed, 13 May 2026 20:10:57 -0700 Subject: [PATCH] fmt: rustfmt reorder of cfg-gated use/mod decls in sink + fs_type --- src/io/sink/mod.rs | 4 ++-- src/platform/fs_type/mod.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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`. ///