Skip to content

Commit

Permalink
Clean up naga's xtask a bit (gfx-rs#7014)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler authored Jan 28, 2025
1 parent b245b35 commit 65d499f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion naga/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mod glob;
mod jobserver;
mod path;
mod process;
mod result;
mod validate;

fn main() -> ExitCode {
Expand Down
33 changes: 0 additions & 33 deletions naga/xtask/src/result.rs

This file was deleted.

2 changes: 1 addition & 1 deletion naga/xtask/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) fn validate(cmd: ValidateSubcommand) -> anyhow::Result<()> {
for job in jobs {
let tx_results = tx_results.clone();
crate::jobserver::start_job_thread(move || {
let result = match std::panic::catch_unwind(|| job()) {
let result = match std::panic::catch_unwind(job) {
Ok(result) => result,
Err(payload) => Err(match payload.downcast_ref::<&str>() {
Some(message) => {
Expand Down

0 comments on commit 65d499f

Please sign in to comment.