Skip to content

Commit 063f48f

Browse files
authored
Fix a warning on Rust nightly (#1581)
This is preventing CI from working currently and fixes a new warning cropping up in nightly.
1 parent f1898f4 commit 063f48f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasmprinter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ impl Printer {
941941
if ty.is_final {
942942
self.result.push_str("final ");
943943
}
944-
for idx in &ty.supertype_idx {
944+
if let Some(idx) = ty.supertype_idx {
945945
self.print_idx(&state.core.type_names, idx.as_module_index().unwrap())?;
946946
self.result.push(' ');
947947
}

0 commit comments

Comments
 (0)