From 0652bfebdee62e17c392030e014569ac5400b24d Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Wed, 24 Jan 2024 11:53:18 -0800 Subject: [PATCH] fix: new versions of WIT require semicolons --- .../wit/component.wit | 4 ++-- .../01-component-instr-component/wit/world.wit | 6 +++--- wit/observe.wit | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/corpus/00-component-instr-command/wit/component.wit b/corpus/00-component-instr-command/wit/component.wit index 9ad8de1..7af736b 100644 --- a/corpus/00-component-instr-command/wit/component.wit +++ b/corpus/00-component-instr-command/wit/component.wit @@ -1,5 +1,5 @@ -package example:component-instr-command +package example:component-instr-command; world component-instr-command { - import dylibso:observe/api + import dylibso:observe/api; } diff --git a/corpus/01-component-instr-component/wit/world.wit b/corpus/01-component-instr-component/wit/world.wit index ca8d22b..db86e21 100644 --- a/corpus/01-component-instr-component/wit/world.wit +++ b/corpus/01-component-instr-component/wit/world.wit @@ -1,7 +1,7 @@ -package component:component-instr-component +package component:component-instr-component; /// An example world for the component to target. world example { - import dylibso:observe/api - export hello-world: func() -> string + import dylibso:observe/api; + export hello-world: func() -> string; } diff --git a/wit/observe.wit b/wit/observe.wit index b9b94df..bcf4a86 100644 --- a/wit/observe.wit +++ b/wit/observe.wit @@ -1,4 +1,4 @@ -package dylibso:observe +package dylibso:observe; interface api { enum log-level { @@ -13,15 +13,15 @@ interface api { statsd, } - metric: func(format: metric-format, name: list) - log: func(level: log-level, msg: list) - span-enter: func(name: string) - span-tags: func(tags: string) - span-exit: func() + metric: func(format: metric-format, name: list); + log: func(level: log-level, msg: list); + span-enter: func(name: string); + span-tags: func(tags: string); + span-exit: func(); } interface instrument { - memory-grow: func(amount-in-pages: u32) - enter: func(func-id: u32) - exit: func(func-id: u32) + memory-grow: func(amount-in-pages: u32); + enter: func(func-id: u32); + exit: func(func-id: u32); }