diff --git a/pulumi_wasm_runner/src/main.rs b/pulumi_wasm_runner/src/main.rs index d5829266e..3819dcdd4 100644 --- a/pulumi_wasm_runner/src/main.rs +++ b/pulumi_wasm_runner/src/main.rs @@ -111,7 +111,7 @@ async fn main() -> Result<(), Error> { pulumi_wasm_source.as_ref(), fs::read(program) .context(format!("Cannot read program {}", program.to_str().unwrap()))?, - *debug + *debug, ) .await?; log::info!("Created final component"); diff --git a/pulumi_wasm_runner_component_creator/src/lib.rs b/pulumi_wasm_runner_component_creator/src/lib.rs index 56c48f3ab..58f797083 100644 --- a/pulumi_wasm_runner_component_creator/src/lib.rs +++ b/pulumi_wasm_runner_component_creator/src/lib.rs @@ -1,10 +1,10 @@ use crate::source::{DefaultProviderSource, ProviderSource, PulumiWasmSource}; use anyhow::{bail, Context}; use itertools::Itertools; +use log::info; use regex::Regex; use std::collections::{BTreeMap, BTreeSet}; use std::hash::Hash; -use log::{info, log}; use wac_graph::types::{Package, SubtypeChecker}; use wac_graph::{CompositionGraph, EncodeOptions, NodeId, PackageId}; @@ -17,7 +17,7 @@ pub async fn create( default_provider_source: &dyn DefaultProviderSource, pulumi_wasm: &dyn PulumiWasmSource, program: Vec, - debug: bool + debug: bool, ) -> anyhow::Result> { let mut graph = CompositionGraph::new(); diff --git a/pulumi_wasm_runner_component_creator/src/source.rs b/pulumi_wasm_runner_component_creator/src/source.rs index 322718073..8eb782a3c 100644 --- a/pulumi_wasm_runner_component_creator/src/source.rs +++ b/pulumi_wasm_runner_component_creator/src/source.rs @@ -46,8 +46,8 @@ impl PulumiWasmSource for GithubPulumiWasmSource { download_file_and_cache(wasm_location, &url) .await .context(format!( - "Cannot download pulumi-wasm in version {version} with profile {profile}. Url: [{url}]" - )) + "Cannot download pulumi-wasm in version {version} with profile {profile}. Url: [{url}]" + )) } } diff --git a/pulumi_wasm_runner_component_creator/tests/create_final_component_test.rs b/pulumi_wasm_runner_component_creator/tests/create_final_component_test.rs index 2d7764df5..7cbadc49e 100644 --- a/pulumi_wasm_runner_component_creator/tests/create_final_component_test.rs +++ b/pulumi_wasm_runner_component_creator/tests/create_final_component_test.rs @@ -49,6 +49,7 @@ async fn should_combine_wasm_components() -> Result<()> { &TestDefaultProviderSource {}, &TestProgramSource {}, encoded.clone(), + true, ) .await .unwrap(); @@ -104,6 +105,7 @@ async fn return_error_when_multiple_dependencies_on_the_same_provider_is_found() &TestDefaultProviderSource {}, &TestProgramSource {}, encoded.clone(), + true, ) .await .expect_err("Expected creator to return error"); @@ -153,6 +155,7 @@ async fn return_error_when_multiple_versions_of_pulumi_wasm_is_found() -> Result &TestDefaultProviderSource {}, &TestProgramSource {}, encoded.clone(), + true, ) .await .expect_err("Expected creator to return error"); @@ -213,6 +216,7 @@ async fn return_error_when_multiple_versions_of_pulumi_wasm_in_providers_is_foun &TestDefaultProviderSource {}, &TestProgramSource {}, encoded.clone(), + true, ) .await .expect_err("Expected creator to return error"); diff --git a/regenerate_providers/src/main.rs b/regenerate_providers/src/main.rs index e2d312f4e..4bd49c54d 100644 --- a/regenerate_providers/src/main.rs +++ b/regenerate_providers/src/main.rs @@ -97,7 +97,7 @@ fn replace_build_wasm_components(providers: &[Provider], content: &str) -> Strin )); } replacement.push_str(" --timings\n"); - replacement.push_str("\n"); + replacement.push('\n'); replacement.push_str("build-wasm-providers-release:\n"); replacement.push_str(" cargo component build \\\n"); for provider in providers {