We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a85997 + b172f2a commit 7d4698cCopy full SHA for 7d4698c
src/util/amount.rs
@@ -85,7 +85,7 @@ impl FromStr for Denomination {
85
use self::ParseAmountError::*;
86
use self::Denomination as D;
87
88
- let starts_with_uppercase = || s.starts_with(|ch: char| ch.is_uppercase());
+ let starts_with_uppercase = || s.starts_with(char::is_uppercase);
89
match denomination_from_str(s) {
90
None => Err(UnknownDenomination(s.to_owned())),
91
Some(D::MilliBitcoin) | Some(D::PicoBitcoin) | Some(D::MilliSatoshi) if starts_with_uppercase() => {
0 commit comments