Skip to content

Commit

Permalink
Merge pull request #32 from andrzejressel/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
mergify[bot] authored Mar 11, 2024
2 parents d8438cf + 972b112 commit 08d2602
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions examples/simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ use pulumi_wasm_rust::pulumi_main;

#[pulumi_main]
fn test_main() -> Result<(), Error> {
wasm_common::setup_logger();

let length: Output<i32> = Output::new(&12).map(|i: i32| i * 3);

let _ = create_random_string(RandomStringArgs {
name: "test",
length,
});

Ok(())
}
3 changes: 1 addition & 2 deletions pulumi_wasm_rust_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ pub fn pulumi_main(_attr: TokenStream, item: TokenStream) -> TokenStream {

let expanded = quote! {

fn #fn_name() #fn_output {
fn #fn_name() #fn_output
#fn_block
}

#[export_name = "component:pulumi-wasm/[email protected]#main"]
unsafe extern "C" fn __exported() {
Expand Down

0 comments on commit 08d2602

Please sign in to comment.