You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3322ca4 hrp: small improvement in hrp parsing (Thomas Coratger)
Pull request description:
In the HRP parsing function, we first test the following conditions with potential error outputs:
```rust
if hrp.is_empty() {
return Err(Empty);
}
if hrp.len() > MAX_HRP_LEN {
return Err(TooLong(hrp.len()));
}
```
So we don't need to directly declare the `new` variable in case an error is thrown and this declaration becoming useless. We can wait for the checks to be ok before declaring this (very small improvement).
ACKs for top commit:
tcharding:
ACK 3322ca4
apoelstra:
ACK 3322ca4 successfully ran local tests
clarkmoody:
ACK 3322ca4
Tree-SHA512: 92da994c5c504cf34e443646548a567076edb57fcbb88e08bada8d1e60ffaeaced50e5665b22dfded5c31107671d3ca7f49dc6eaaeb732a43ac424a3425fa145
0 commit comments