mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
style(df): rustfmt src/uu/df/src/df.rs
This commit is contained in:
parent
06fe387c76
commit
7e3f32d4db
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,7 @@ use kernel32::{
|
||||||
GetVolumeInformationW, GetVolumePathNamesForVolumeNameW, QueryDosDeviceW,
|
GetVolumeInformationW, GetVolumePathNamesForVolumeNameW, QueryDosDeviceW,
|
||||||
};
|
};
|
||||||
|
|
||||||
use number_prefix::{binary_prefix, decimal_prefix, Prefixed, Standalone, PrefixNames};
|
use number_prefix::{binary_prefix, decimal_prefix, PrefixNames, Prefixed, Standalone};
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
@ -718,7 +718,6 @@ fn human_readable(value: u64, base: i64) -> String {
|
||||||
|
|
||||||
// ref: [Binary prefix](https://en.wikipedia.org/wiki/Binary_prefix) @@ <https://archive.is/cnwmF>
|
// ref: [Binary prefix](https://en.wikipedia.org/wiki/Binary_prefix) @@ <https://archive.is/cnwmF>
|
||||||
// ref: [SI/metric prefix](https://en.wikipedia.org/wiki/Metric_prefix) @@ <https://archive.is/QIuLj>
|
// ref: [SI/metric prefix](https://en.wikipedia.org/wiki/Metric_prefix) @@ <https://archive.is/QIuLj>
|
||||||
|
|
||||||
1000 => match decimal_prefix(value as f64) {
|
1000 => match decimal_prefix(value as f64) {
|
||||||
Standalone(bytes) => bytes.to_string(),
|
Standalone(bytes) => bytes.to_string(),
|
||||||
Prefixed(prefix, bytes) => format!("{:.1}{}", bytes, prefix.symbol()),
|
Prefixed(prefix, bytes) => format!("{:.1}{}", bytes, prefix.symbol()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue