From b474b8146de6ce925098b08a1d6af62aa0c25f77 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 12 Mar 2023 08:06:46 +0100 Subject: refactor --- src/options.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/options.rs b/src/options.rs index 6b79278..ab48980 100644 --- a/src/options.rs +++ b/src/options.rs @@ -1,5 +1,5 @@ use dua::ByteFormat as LibraryByteFormat; -use std::{env, path::PathBuf}; +use std::path::PathBuf; #[derive(PartialEq, Eq, Debug, Clone, Copy, clap::ValueEnum)] pub enum ByteFormat { @@ -27,10 +27,10 @@ impl From for LibraryByteFormat { } fn dft_format() -> ByteFormat { - if env::consts::OS != "macos" { - ByteFormat::Binary - } else { + if std::env::consts::OS == "macos" { ByteFormat::Metric + } else { + ByteFormat::Binary } } -- cgit v1.2.3