Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <[email protected]>
  • Loading branch information
karthik2804 committed Aug 29, 2024
1 parent d7754d9 commit 6bd5b41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ impl CommandTrigger {
let mut instance_builder = trigger_app.prepare(&component.id)?;
let t = instance_builder.factor_builders().wasi();

let args = vec![&component.id]
.into_iter()
.chain(args.guest_args.iter());
let args = std::iter::once(component.id).chain(args.guest_args);
t.args(args);

let (instance, mut store) = instance_builder.instantiate(()).await?;
Expand Down

0 comments on commit 6bd5b41

Please sign in to comment.