fix: unicode on exactly index 7 should not panic#4
Conversation
|
from @nothingmuch:
I do believe using
|
nothingmuch
left a comment
There was a problem hiding this comment.
ACK, I verified that this implements the correct behavior. FWIW, as a rust n00b the incorrect behavior was not obviously wrong to me at all, perhaps a clarifying comment could improve readability but given that the branch is a PR against bip21 that would need to be in a followup PR i suppose
|
tACK on 1b19687 test fails without change and passes with it |
heh, my sloppy phrasing in DMs is so incoherent it almost calls into question my approval tl;dr - slicing a &str using usize range interprets the usize offsets as byte offsets, but if those fall in the middle of a utf8 character this panics with |
|
Rats. This introduced an MSRV break because the PR ran before that MSRV check was in CI. Deploying a fix |
Thank you @lsunsi for opening the original PR
Kixunil#25