fmt: rustfmt reorder of cfg-gated use/mod decls in sink + fs_type
This commit is contained in:
+2
-2
@@ -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")]
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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`.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user