Skip to content

Commit

Permalink
Turbopack: Hide Turbo Engine internals
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Aug 7, 2023
1 parent b993afb commit a493540
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/src/app_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ pub fn stream_entrypoints(
func.call(Ok(None), ThreadsafeFunctionCallMode::NonBlocking);
}

Ok(unit().node)
Ok(unit())
})
});
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/src/next_api/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub fn subscribe<T: 'static + Send + Sync, F: Future<Output = Result<T>> + Send,
eprintln!("{}", error);
return Err(error);
}
Ok(unit().node)
Ok(unit())
})
});
Ok(External::new(RootTask {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/next-build/src/next_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ async fn handle_issues<T>(source: Vc<T>, issue_reporter: Vc<Box<dyn IssueReporte

let has_fatal = issue_reporter.report_issues(
TransientInstance::new(issues.clone()),
TransientValue::new(source.node),
TransientValue::new(Vc::into_raw(source)),
// TODO this should be Error, but we need to fix the errors happing first
IssueSeverity::Fatal.cell(),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async fn run_test(resource: PathBuf) -> JsResult {
)
.await?;

Ok(unit().node)
Ok(unit())
});
tt.wait_task_completion(task, true).await.unwrap();
}
Expand Down

0 comments on commit a493540

Please sign in to comment.