Allow unusual digit grouping

Clippy emits:

  warning: digits grouped inconsistently by underscores

Add allow directive for grouping that aims to make explicit 100,000,000
sats/per bitcoin.
This commit is contained in:
Tobin C. Harding 2022-06-07 14:29:15 +10:00
parent 242c640603
commit 827fcd8a89
1 changed files with 3 additions and 0 deletions

View File

@ -1599,6 +1599,7 @@ mod tests {
} }
#[test] #[test]
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
fn parsing() { fn parsing() {
use super::ParseAmountError as E; use super::ParseAmountError as E;
let btc = Denomination::Bitcoin; let btc = Denomination::Bitcoin;
@ -1868,6 +1869,7 @@ mod tests {
} }
#[test] #[test]
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
fn from_str() { fn from_str() {
use super::ParseAmountError as E; use super::ParseAmountError as E;
let p = Amount::from_str; let p = Amount::from_str;
@ -1906,6 +1908,7 @@ mod tests {
} }
#[test] #[test]
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
fn to_from_string_in() { fn to_from_string_in() {
use super::Denomination as D; use super::Denomination as D;
let ua_str = Amount::from_str_in; let ua_str = Amount::from_str_in;