From 6d55e8c99b0eb6d8a1e2544de0046a1fc6c80963 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Sun, 1 Dec 2024 23:06:53 +0100 Subject: [PATCH 1/2] Ignore static_mut_refs warning --- providers/pulumi_wasm_provider_cloudflare/src/lib.rs | 1 + providers/pulumi_wasm_provider_docker/src/lib.rs | 1 + providers/pulumi_wasm_provider_random/src/lib.rs | 1 + pulumi_wasm/src/lib.rs | 1 + pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars | 1 + 5 files changed, 5 insertions(+) diff --git a/providers/pulumi_wasm_provider_cloudflare/src/lib.rs b/providers/pulumi_wasm_provider_cloudflare/src/lib.rs index 04bc47418..3e8987bca 100644 --- a/providers/pulumi_wasm_provider_cloudflare/src/lib.rs +++ b/providers/pulumi_wasm_provider_cloudflare/src/lib.rs @@ -3,6 +3,7 @@ mod function; #[allow(unused_braces)] #[allow(unused_imports)] +#[allow(static_mut_refs)] mod bindings; bindings::export!(Component with_types_in bindings); diff --git a/providers/pulumi_wasm_provider_docker/src/lib.rs b/providers/pulumi_wasm_provider_docker/src/lib.rs index 04bc47418..3e8987bca 100644 --- a/providers/pulumi_wasm_provider_docker/src/lib.rs +++ b/providers/pulumi_wasm_provider_docker/src/lib.rs @@ -3,6 +3,7 @@ mod function; #[allow(unused_braces)] #[allow(unused_imports)] +#[allow(static_mut_refs)] mod bindings; bindings::export!(Component with_types_in bindings); diff --git a/providers/pulumi_wasm_provider_random/src/lib.rs b/providers/pulumi_wasm_provider_random/src/lib.rs index 5d036ff0a..b7a2350e1 100644 --- a/providers/pulumi_wasm_provider_random/src/lib.rs +++ b/providers/pulumi_wasm_provider_random/src/lib.rs @@ -2,6 +2,7 @@ mod resource; #[allow(unused_braces)] #[allow(unused_imports)] +#[allow(static_mut_refs)] mod bindings; bindings::export!(Component with_types_in bindings); diff --git a/pulumi_wasm/src/lib.rs b/pulumi_wasm/src/lib.rs index cc86f2d2a..3ed7289a5 100644 --- a/pulumi_wasm/src/lib.rs +++ b/pulumi_wasm/src/lib.rs @@ -23,6 +23,7 @@ bindings::export!(Component with_types_in bindings); #[allow(clippy::all)] #[allow(unused_braces)] +#[allow(static_mut_refs)] #[rustfmt::skip] mod bindings; diff --git a/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars b/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars index 88774a054..3bcf99a9e 100644 --- a/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars +++ b/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars @@ -8,6 +8,7 @@ mod function; {{#if package.contains_resources_or_functions}} #[allow(unused_braces)] #[allow(unused_imports)] +#[allow(static_mut_refs)] mod bindings; bindings::export!(Component with_types_in bindings); {{/if}} From 56bedefb5f0373b586faf31a7ea77b5712cdc639 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Sun, 1 Dec 2024 23:15:15 +0100 Subject: [PATCH 2/2] Ignore static_mut_refs warning --- .../tests/output/functions-secrets/provider/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pulumi_wasm_generator_lib/tests/output/functions-secrets/provider/src/lib.rs b/pulumi_wasm_generator_lib/tests/output/functions-secrets/provider/src/lib.rs index 04bc47418..3e8987bca 100644 --- a/pulumi_wasm_generator_lib/tests/output/functions-secrets/provider/src/lib.rs +++ b/pulumi_wasm_generator_lib/tests/output/functions-secrets/provider/src/lib.rs @@ -3,6 +3,7 @@ mod function; #[allow(unused_braces)] #[allow(unused_imports)] +#[allow(static_mut_refs)] mod bindings; bindings::export!(Component with_types_in bindings);