summaryrefslogtreecommitdiff
path: root/cli/standalone/mod.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-06-14 17:10:57 +0530
committerGitHub <noreply@github.com>2024-06-14 17:10:57 +0530
commit0f48313565ed2620efbd9d0f2203b57f8f126e6a (patch)
tree39e348917188b7524eadc138dfcf80f92a185ac6 /cli/standalone/mod.rs
parente19ee6eecc416a99801231ac53f2c512ba1f81dd (diff)
chore: upgrade to rust 1.79 (#24207)
Diffstat (limited to 'cli/standalone/mod.rs')
-rw-r--r--cli/standalone/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs
index b71e47ceb..e2a53e468 100644
--- a/cli/standalone/mod.rs
+++ b/cli/standalone/mod.rs
@@ -264,7 +264,9 @@ fn arc_u8_to_arc_str(
// SAFETY: the string is valid UTF-8, and the layout Arc<[u8]> is the same as
// Arc<str>. This is proven by the From<Arc<str>> impl for Arc<[u8]> from the
// standard library.
- Ok(unsafe { std::mem::transmute(arc_u8) })
+ Ok(unsafe {
+ std::mem::transmute::<std::sync::Arc<[u8]>, std::sync::Arc<str>>(arc_u8)
+ })
}
struct StandaloneModuleLoaderFactory {
@@ -548,7 +550,6 @@ pub async fn run(
CliMainWorkerOptions {
argv: metadata.argv,
log_level: WorkerLogLevel::Info,
- coverage_dir: None,
enable_op_summary_metrics: false,
enable_testing_features: false,
has_node_modules_dir,