This commit is contained in:
Richard Feldman 2020-08-03 20:48:38 -04:00
parent 6ba54c986f
commit 656dd18177
2 changed files with 10 additions and 10 deletions

View file

@ -1220,7 +1220,7 @@ fn parse_and_constrain<'a>(
// SAFETY: By this point we've already incrementally verified that there
// are no UTF-8 errors in these bytes. If there had been any UTF-8 errors,
// we'd have bailed out before now.
let src = unsafe { from_utf8_unchecked(header.src.as_ref()) };
let src = unsafe { from_utf8_unchecked(header.src) };
// Send the constraint to the main thread for processing.
Ok(Msg::Constrained {