fmt: rustfmt reorder of cfg-gated use/mod decls in sink + fs_type

This commit is contained in:
2026-05-13 20:10:57 -07:00
parent 8fa1ff92de
commit baa789852d
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -83,10 +83,10 @@ pub fn open_for_mkv(
dest: &std::path::Path, dest: &std::path::Path,
size_hint: Option<u64>, size_hint: Option<u64>,
) -> std::io::Result<Box<dyn RandomAccessSink>> { ) -> std::io::Result<Box<dyn RandomAccessSink>> {
#[cfg(target_os = "linux")]
use crate::platform::fs_type::{FsType, detect};
#[cfg(not(target_os = "linux"))] #[cfg(not(target_os = "linux"))]
use crate::platform::fs_type::detect; use crate::platform::fs_type::detect;
#[cfg(target_os = "linux")]
use crate::platform::fs_type::{FsType, detect};
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
+4 -4
View File
@@ -37,19 +37,19 @@ pub enum FsType {
mod linux; mod linux;
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
mod macos; mod macos;
#[cfg(target_os = "windows")]
mod windows;
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
mod other; mod other;
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
use linux::detect_impl; use linux::detect_impl;
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
use macos::detect_impl; use macos::detect_impl;
#[cfg(target_os = "windows")]
use windows::detect_impl;
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
use other::detect_impl; use other::detect_impl;
#[cfg(target_os = "windows")]
use windows::detect_impl;
/// Best-effort classification of the filesystem under `path`. /// Best-effort classification of the filesystem under `path`.
/// ///