From 1fcecb6789c3f111bc1554766ba9347afcfd02dc Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 20 May 2022 16:40:55 -0400 Subject: refactor: upgrade to deno_ast 0.15 (#14680) --- cli/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/main.rs') 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 { 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, }; -- cgit v1.2.3