Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
theBeardA committed Jun 27, 2023
1 parent 8ceb098 commit a5cba34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion core/application/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use fleek_crypto::{
TransactionSignature,
};
use hp_float::unsigned::HpUfloat;
use rand::{rngs::StdRng, Rng, SeedableRng};
use rand::Rng;
use tokio::test;

use crate::{
Expand Down
16 changes: 8 additions & 8 deletions lib/hp-float/src/signed.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{
convert::TryInto,
fmt,
ops::{Add, Div, Mul, Sub, AddAssign, SubAssign},
ops::{Add, AddAssign, Div, Mul, Sub, SubAssign},
};

use num_bigint::{
Expand All @@ -17,7 +17,7 @@ use crate::{format_hp_float, get_float_parts, HpFloatConversionError};

/// A high-precision floating-point number backed by a `BigInt`.
///
/// `HpFloat` is parameterized over the precision `P`, which determines
/// `HpFloat` is parameterized over the precision `P`, which determines
/// the number of digits maintained after the decimal point.
///
/// # Examples
Expand All @@ -33,16 +33,16 @@ use crate::{format_hp_float, get_float_parts, HpFloatConversionError};
///
/// # Notes
///
/// The underlying storage is a `BigInt` from the `num-bigint` crate.
/// The precision `P` is defined at compile-time and applies to all
/// operations. When the result of an operation has more than `P`
/// The underlying storage is a `BigInt` from the `num-bigint` crate.
/// The precision `P` is defined at compile-time and applies to all
/// operations. When the result of an operation has more than `P`
/// digits after the decimal point, it is truncated at `P` digits.
///
/// # Type Parameters
///
/// * `P`: The number of digits to maintain after the decimal point in this `HpFloat`.
/// Must be a constant that is known at compile time.
///
/// * `P`: The number of digits to maintain after the decimal point in this `HpFloat`. Must be a
/// constant that is known at compile time.
///
/// # Attributes
///
/// * `BigInt`: The underlying large signed integer value that the `HpFloat` wraps around.
Expand Down
12 changes: 6 additions & 6 deletions lib/hp-float/src/unsigned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ use crate::{format_hp_float, HpFloatConversionError};

/// A high-precision unsigned floating-point number backed by a `BigUint`.
///
/// `HpUfloat` is parameterized over the precision `P`, which determines the number of digits
/// maintained after the decimal point. This structure is primarily used for accurate accounting
/// `HpUfloat` is parameterized over the precision `P`, which determines the number of digits
/// maintained after the decimal point. This structure is primarily used for accurate accounting
/// in relation to specific tokens where precision requirements are critical.
///
/// The precision `P` is defined at compile time and is crucial for ensuring accurate
/// The precision `P` is defined at compile time and is crucial for ensuring accurate
/// interoperability with accounting and balances.
///
/// # Examples
Expand All @@ -30,13 +30,13 @@ use crate::{format_hp_float, HpFloatConversionError};
///
/// # Notes
///
/// The underlying storage is a `BigUint` from the `num-bigint` crate. When the result of an
/// The underlying storage is a `BigUint` from the `num-bigint` crate. When the result of an
/// operation has more than `P` digits after the decimal point, it is truncated at `P` digits.
///
/// # Type Parameters
///
/// * `P`: The number of digits to maintain after the decimal point in this `HpUfloat`.
/// Must be a constant that is known at compile time.
/// * `P`: The number of digits to maintain after the decimal point in this `HpUfloat`. Must be a
/// constant that is known at compile time.
///
/// # Attributes
///
Expand Down

0 comments on commit a5cba34

Please sign in to comment.