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.
1 parent e35cdda commit 3322ca4Copy full SHA for 3322ca4
src/primitives/hrp.rs
@@ -78,15 +78,15 @@ impl Hrp {
78
pub fn parse(hrp: &str) -> Result<Self, Error> {
79
use Error::*;
80
81
- let mut new = Hrp { buf: [0_u8; MAX_HRP_LEN], size: 0 };
82
-
83
if hrp.is_empty() {
84
return Err(Empty);
85
}
86
if hrp.len() > MAX_HRP_LEN {
87
return Err(TooLong(hrp.len()));
88
89
+ let mut new = Hrp { buf: [0_u8; MAX_HRP_LEN], size: 0 };
+
90
let mut has_lower: bool = false;
91
let mut has_upper: bool = false;
92
for (i, c) in hrp.chars().enumerate() {
0 commit comments