summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Allen <curtis.n.allen@gmail.com>2022-06-29 18:26:58 -0600
committerGitHub <noreply@github.com>2022-06-30 02:26:58 +0200
commitd5ef14eca65c78f4463a6082b392c3a8b097f7a1 (patch)
treeef5e15c1a70984bc31dc0d1391692e6ea360e9d8
parent8c4420c0052ed374ce1692e5dfc8e4c67367a397 (diff)
fix(runtime): derive default for deno_runtime::ExitCode (#15017)
-rw-r--r--runtime/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index fd937559f..f9274babe 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -35,7 +35,7 @@ use std::task::Poll;
pub type FormatJsErrorFn = dyn Fn(&JsError) -> String + Sync + Send;
-#[derive(Clone)]
+#[derive(Clone, Default)]
pub struct ExitCode(Arc<AtomicI32>);
impl ExitCode {