@@ -28,7 +28,7 @@ use winapi::um::fileapi::{
2828 GetVolumePathNamesForVolumeNameW , QueryDosDeviceW ,
2929} ;
3030
31- use number_prefix:: { binary_prefix , decimal_prefix , PrefixNames , Prefixed , Standalone } ;
31+ use number_prefix:: NumberPrefix ;
3232use std:: cell:: Cell ;
3333use std:: collections:: HashMap ;
3434use std:: collections:: HashSet ;
@@ -716,14 +716,14 @@ fn human_readable(value: u64, base: i64) -> String {
716716
717717 // ref: [Binary prefix](https://en.wikipedia.org/wiki/Binary_prefix) @@ <https://archive.is/cnwmF>
718718 // ref: [SI/metric prefix](https://en.wikipedia.org/wiki/Metric_prefix) @@ <https://archive.is/QIuLj>
719- 1000 => match decimal_prefix ( value as f64 ) {
720- Standalone ( bytes) => bytes. to_string ( ) ,
721- Prefixed ( prefix, bytes) => format ! ( "{:.1}{}" , bytes, prefix. symbol( ) ) ,
719+ 1000 => match NumberPrefix :: decimal ( value as f64 ) {
720+ NumberPrefix :: Standalone ( bytes) => bytes. to_string ( ) ,
721+ NumberPrefix :: Prefixed ( prefix, bytes) => format ! ( "{:.1}{}" , bytes, prefix. symbol( ) ) ,
722722 } ,
723723
724- 1024 => match binary_prefix ( value as f64 ) {
725- Standalone ( bytes) => bytes. to_string ( ) ,
726- Prefixed ( prefix, bytes) => format ! ( "{:.1}{}" , bytes, prefix. symbol( ) ) ,
724+ 1024 => match NumberPrefix :: binary ( value as f64 ) {
725+ NumberPrefix :: Standalone ( bytes) => bytes. to_string ( ) ,
726+ NumberPrefix :: Prefixed ( prefix, bytes) => format ! ( "{:.1}{}" , bytes, prefix. symbol( ) ) ,
727727 } ,
728728
729729 _ => crash ! ( EXIT_ERR , "Internal error: Unknown base value {}" , base) ,
0 commit comments