diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-13 21:40:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-13 21:41:33 +0100 |
| commit | 724e9b140cc0a87208aa9c4914b1b8aeddf25c30 (patch) | |
| tree | 632984e85eb21c5a5a04c397a74725df6f7f8a28 /library/src/compute | |
| parent | 880b1847bd4170ce80be5781c2163ba085cdcaff (diff) | |
Locatability and synthesis improvements
Diffstat (limited to 'library/src/compute')
| -rw-r--r-- | library/src/compute/data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index 7addff78..82ff3a4b 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -27,7 +27,7 @@ pub fn read( let Spanned { v: path, span } = path; let path = vm.locate(&path).at(span)?; let data = vm.world().file(&path).at(span)?; - let text = String::from_utf8(data.to_vec()) + let text = std::str::from_utf8(&data) .map_err(|_| "file is not valid utf-8") .at(span)?; Value::Str(text.into()) |
