diff options
author | Maayan Hanin <maayan.asa.hanin@gmail.com> | 2020-08-04 00:39:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 23:39:48 +0200 |
commit | 5fc5e7b54a9fba421dfc473016625a4f592403ed (patch) | |
tree | e66bbbdaa30b34b7cef8072ded8ea3f0575c47f0 /cli/global_state.rs | |
parent | d615ebefe2e306f2877afb40dc603f71263407d6 (diff) |
fix(cli): add support for non-UTF8 source files (#6789)
Fixes: #5542
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r-- | cli/global_state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs index a26fc453e..a723bdd2f 100644 --- a/cli/global_state.rs +++ b/cli/global_state.rs @@ -250,7 +250,7 @@ impl GlobalState { } } else { CompiledModule { - code: String::from_utf8(out.source_code.clone())?, + code: out.source_code.to_string()?, name: out.url.to_string(), } }; |