Skip to content

Commit

Permalink
fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Dec 17, 2023
1 parent e22ff8b commit e4e4447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "byte-unit"
version = "5.1.1"
version = "5.1.2"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.69"
Expand Down
4 changes: 2 additions & 2 deletions src/bit/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ impl Bit {
#[inline]
pub fn get_recoverable_unit(
self,
allow_in_bits: bool,
allow_in_bytes: bool,
mut precision: usize,
) -> (Decimal, Unit) {
let bits_v = self.as_u128();
let bits_vd = Decimal::from(bits_v);

let a = if allow_in_bits { Unit::get_multiples() } else { Unit::get_multiples_bits() };
let a = if allow_in_bytes { Unit::get_multiples() } else { Unit::get_multiples_bits() };
let mut i = a.len() - 1;

if precision >= 28 {
Expand Down

0 comments on commit e4e4447

Please sign in to comment.