Skip to content

Commit

Permalink
Fix a warning on Rust nightly (#1581)
Browse files Browse the repository at this point in the history
This is preventing CI from working currently and fixes a new warning
cropping up in nightly.
  • Loading branch information
alexcrichton authored May 28, 2024
1 parent f1898f4 commit 063f48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmprinter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ impl Printer {
if ty.is_final {
self.result.push_str("final ");
}
for idx in &ty.supertype_idx {
if let Some(idx) = ty.supertype_idx {
self.print_idx(&state.core.type_names, idx.as_module_index().unwrap())?;
self.result.push(' ');
}
Expand Down

0 comments on commit 063f48f

Please sign in to comment.