From 45a4d75296b221240a2842bae0aef21622e21f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 5 May 2022 13:16:25 +0200 Subject: refactor(core): use Box for ModuleSource.code instead of a String (#14487) --- core/examples/ts_module_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/examples') diff --git a/core/examples/ts_module_loader.rs b/core/examples/ts_module_loader.rs index 963533ffc..68ee06e60 100644 --- a/core/examples/ts_module_loader.rs +++ b/core/examples/ts_module_loader.rs @@ -80,7 +80,7 @@ impl ModuleLoader for TypescriptModuleLoader { code }; let module = ModuleSource { - code, + code: code.into_bytes().into_boxed_slice(), module_type, module_url_specified: module_specifier.to_string(), module_url_found: module_specifier.to_string(), -- cgit v1.2.3