diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-05-20 16:40:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 16:40:55 -0400 |
commit | 1fcecb6789c3f111bc1554766ba9347afcfd02dc (patch) | |
tree | 19cd1b121412b992994b2fe4bea0463793d3986e /cli/main.rs | |
parent | e7c894e8f54ebd2d9fd61c97a265906ac54e2068 (diff) |
refactor: upgrade to deno_ast 0.15 (#14680)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index 2058c487a..5fb0c1a90 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -636,7 +636,7 @@ async fn eval_command( local: main_module.clone().to_file_path().unwrap(), maybe_types: None, media_type: MediaType::Unknown, - source: Arc::new(String::from_utf8(source_code)?), + source: String::from_utf8(source_code)?.into(), specifier: main_module.clone(), maybe_headers: None, }; @@ -974,7 +974,7 @@ async fn run_from_stdin(flags: Flags) -> Result<i32, AnyError> { local: main_module.clone().to_file_path().unwrap(), maybe_types: None, media_type: MediaType::TypeScript, - source: Arc::new(String::from_utf8(source)?), + source: String::from_utf8(source)?.into(), specifier: main_module.clone(), maybe_headers: None, }; |