mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Lazily validate that input bytes are valid UTF-8
This commit is contained in:
parent
15f087c93e
commit
9f9ce327d4
21 changed files with 709 additions and 626 deletions
|
@ -584,7 +584,7 @@ fn parse_src(
|
|||
/// This has two unsafe calls:
|
||||
///
|
||||
/// * memory map the filename instead of doing a buffered read
|
||||
/// * assume the contents of the file are valid utf8
|
||||
/// * assume the contents of the file are valid UTF-8
|
||||
fn load_filename(
|
||||
filename: PathBuf,
|
||||
msg_tx: MsgSender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue