@@ -33,7 +33,7 @@ fn build_example(name: &str) -> Result<()> {
3333} 
3434
3535static  FUNCTION_RUNNER_PATH :  LazyLock < anyhow:: Result < PathBuf > >  = LazyLock :: new ( || { 
36-     let  path = workspace_root ( ) . join ( format ! ( "tmp/function-runner-{}"  ,   FUNCTION_RUNNER_VERSION ) ) ; 
36+     let  path = workspace_root ( ) . join ( format ! ( "tmp/function-runner-{FUNCTION_RUNNER_VERSION}"  ) ) ; 
3737
3838    if  !path. exists ( )  { 
3939        std:: fs:: create_dir_all ( workspace_root ( ) . join ( "tmp" ) ) ?; 
@@ -44,7 +44,7 @@ static FUNCTION_RUNNER_PATH: LazyLock<anyhow::Result<PathBuf>> = LazyLock::new(|
4444} ) ; 
4545
4646static  TRAMPOLINE_PATH :  LazyLock < anyhow:: Result < PathBuf > >  = LazyLock :: new ( || { 
47-     let  path = workspace_root ( ) . join ( format ! ( "tmp/trampoline-{}"  ,   TRAMPOLINE_VERSION ) ) ; 
47+     let  path = workspace_root ( ) . join ( format ! ( "tmp/trampoline-{TRAMPOLINE_VERSION}"  ) ) ; 
4848    if  !path. exists ( )  { 
4949        std:: fs:: create_dir_all ( workspace_root ( ) . join ( "tmp" ) ) ?; 
5050        download_trampoline ( & path) ?; 
@@ -56,8 +56,7 @@ fn download_function_runner(destination: &PathBuf) -> Result<()> {
5656    download_from_github ( 
5757        |target_arch,  target_os| { 
5858            format ! ( 
59-                 "https://github.com/Shopify/function-runner/releases/download/v{}/function-runner-{}-{}-v{}.gz" , 
60-                 FUNCTION_RUNNER_VERSION ,  target_arch,  target_os,  FUNCTION_RUNNER_VERSION , 
59+                 "https://github.com/Shopify/function-runner/releases/download/v{FUNCTION_RUNNER_VERSION}/function-runner-{target_arch}-{target_os}-v{FUNCTION_RUNNER_VERSION}.gz" , 
6160            ) 
6261        } , 
6362        destination, 
@@ -68,8 +67,7 @@ fn download_trampoline(destination: &PathBuf) -> Result<()> {
6867    download_from_github ( 
6968        |target_arch,  target_os| { 
7069            format ! ( 
71-             "https://github.com/Shopify/shopify-function-wasm-api/releases/download/shopify_function_trampoline/v{}/shopify-function-trampoline-{}-{}-v{}.gz" , 
72-             TRAMPOLINE_VERSION ,  target_arch,  target_os,  TRAMPOLINE_VERSION , 
70+             "https://github.com/Shopify/shopify-function-wasm-api/releases/download/shopify_function_trampoline/v{TRAMPOLINE_VERSION}/shopify-function-trampoline-{target_arch}-{target_os}-v{TRAMPOLINE_VERSION}.gz" , 
7371        ) 
7472        } , 
7573        destination, 
@@ -127,10 +125,10 @@ pub fn prepare_example(name: &str) -> Result<PathBuf> {
127125    build_example ( name) ?; 
128126    let  wasm_path = workspace_root ( ) 
129127        . join ( "target/wasm32-wasip1/release" ) 
130-         . join ( format ! ( "{}.wasm" ,  name ) ) ; 
128+         . join ( format ! ( "{name }.wasm" ) ) ; 
131129    let  trampolined_path = workspace_root ( ) 
132130        . join ( "target/wasm32-wasip1/release" ) 
133-         . join ( format ! ( "{}-trampolined.wasm" ,  name ) ) ; 
131+         . join ( format ! ( "{name }-trampolined.wasm" ) ) ; 
134132    let  trampoline_path = TRAMPOLINE_PATH 
135133        . as_ref ( ) 
136134        . map_err ( |e| anyhow:: anyhow!( "Failed to download trampoline: {}" ,  e) ) ?; 
0 commit comments