Skip to content

Commit 032a5e0

Browse files
committed
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.
1 parent 4a23bb6 commit 032a5e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/amount.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,7 @@ mod tests {
15991599
}
16001600

16011601
#[test]
1602+
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
16021603
fn parsing() {
16031604
use super::ParseAmountError as E;
16041605
let btc = Denomination::Bitcoin;
@@ -1868,6 +1869,7 @@ mod tests {
18681869
}
18691870

18701871
#[test]
1872+
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
18711873
fn from_str() {
18721874
use super::ParseAmountError as E;
18731875
let p = Amount::from_str;
@@ -1906,6 +1908,7 @@ mod tests {
19061908
}
19071909

19081910
#[test]
1911+
#[allow(clippy::inconsistent_digit_grouping)] // Group to show 100,000,000 sats per bitcoin.
19091912
fn to_from_string_in() {
19101913
use super::Denomination as D;
19111914
let ua_str = Amount::from_str_in;

0 commit comments

Comments
 (0)