File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " byte-unit"
3- version = " 5.1.1 "
3+ version = " 5.1.2 "
44authors = [
" Magic Len <[email protected] >" ]
55edition = " 2021"
66rust-version = " 1.69"
Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ impl Bit {
123123 #[ inline]
124124 pub fn get_recoverable_unit (
125125 self ,
126- allow_in_bits : bool ,
126+ allow_in_bytes : bool ,
127127 mut precision : usize ,
128128 ) -> ( Decimal , Unit ) {
129129 let bits_v = self . as_u128 ( ) ;
130130 let bits_vd = Decimal :: from ( bits_v) ;
131131
132- let a = if allow_in_bits { Unit :: get_multiples ( ) } else { Unit :: get_multiples_bits ( ) } ;
132+ let a = if allow_in_bytes { Unit :: get_multiples ( ) } else { Unit :: get_multiples_bits ( ) } ;
133133 let mut i = a. len ( ) - 1 ;
134134
135135 if precision >= 28 {
You can’t perform that action at this time.
0 commit comments