diff options
Diffstat (limited to 'bench_util/benches/utf8.rs')
-rw-r--r-- | bench_util/benches/utf8.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bench_util/benches/utf8.rs b/bench_util/benches/utf8.rs index 021c409b8..499571e5e 100644 --- a/bench_util/benches/utf8.rs +++ b/bench_util/benches/utf8.rs @@ -9,19 +9,14 @@ fn setup() -> Vec<Extension> { vec![Extension::builder() .js(vec![( "setup.js", - Box::new(|| { - Ok( - r#" + r#" const hello = "hello world\n"; const hello1k = hello.repeat(1e3); const hello1m = hello.repeat(1e6); const helloEncoded = Deno.core.encode(hello); const hello1kEncoded = Deno.core.encode(hello1k); const hello1mEncoded = Deno.core.encode(hello1m); - "# - .into(), - ) - }), + "#, )]) .build()] } |