diff options
| author | Mica White <botahamec@outlook.com> | 2026-10-31 11:10:49 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-10-31 11:10:49 -0400 |
| commit | 264ea48cc8c6dd9c3c9e0fe1a559252863fc9962 (patch) | |
| tree | 84a4a58de14442f4fcfa06bd0d82480508f82759 /crates/cli/src/output.rs | |
| parent | 7877eca4e8be283e7c51168ee3a3b05d9000f39c (diff) | |
| parent | b45a98a85c776d956a797773acd2f198c06b40ed (diff) | |
Merge branch 'main' into bota-tortuise
Diffstat (limited to 'crates/cli/src/output.rs')
| -rw-r--r-- | crates/cli/src/output.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/cli/src/output.rs b/crates/cli/src/output.rs index 40a271e..75be9f8 100644 --- a/crates/cli/src/output.rs +++ b/crates/cli/src/output.rs @@ -48,7 +48,7 @@ pub fn format_memory_type(ty: &MemoryType) -> String { MemoryArch::I32 => "i32", MemoryArch::I64 => "i64", }; - let max = if ty.page_count_max() == ty.page_count_initial() && ty.max_size() == ty.initial_size() { + let max = if ty.page_count_max() == ty.page_count_initial() { ty.page_count_initial().to_string() } else { ty.page_count_max().to_string() @@ -77,6 +77,7 @@ pub fn format_export_type(ty: ExportType<'_>) -> String { ExportType::Memory(ty) => format_memory_type(ty), ExportType::Table(ty) => format_table_type(ty), ExportType::Global(ty) => format_global_type(ty), + ExportType::Tag(ty) => format!("tag {}", format_func_type(ty)), } } @@ -86,5 +87,6 @@ pub fn format_import_type(ty: ImportType<'_>) -> String { ImportType::Memory(ty) => format_memory_type(ty), ImportType::Table(ty) => format_table_type(ty), ImportType::Global(ty) => format_global_type(ty), + ImportType::Tag(ty) => format!("tag {}", format_func_type(ty)), } } |
