Skip to content

Commit fd0055f

Browse files
committed
fix: move drop
1 parent dd8153d commit fd0055f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/run.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ fn populate_with_wasi(
506506
if wasi_modules.wasi_threads {
507507
#[cfg(not(feature = "wasi-threads"))]
508508
{
509+
// Silence the unused warning for `module` as it is only used in the
510+
// conditionally-compiled wasi-threads.
511+
drop(&module);
512+
509513
bail!("Cannot enable wasi-threads when the binary is not compiled with this feature.");
510514
}
511515
#[cfg(feature = "wasi-threads")]
@@ -520,10 +524,6 @@ fn populate_with_wasi(
520524
}
521525
}
522526

523-
// Silence the unused warning for `module` as it is only used in the
524-
// conditionally-compiled wasi-threads.
525-
drop(&module);
526-
527527
Ok(())
528528
}
529529

0 commit comments

Comments
 (0)