@@ -157,25 +157,12 @@ impl<'a> Template {
157157 Template :: Yew | Template :: Leptos | Template :: Sycamore => Some (
158158 format ! (
159159 "{ITALIC}{DIM}You also need to install:\n 1. {DIMRESET}{YELLOW}tauri-cli{WHITE}{DIM} ({DIMRESET}{BLUE}{tauri_cli_cmd}{WHITE}{DIM})\n 2. {DIMRESET}{YELLOW}trunk{WHITE}{DIM} ({DIMRESET}{BLUE}https://trunkrs.dev/#install{WHITE}{DIM})\n 3. {DIMRESET}{YELLOW}wasm32{WHITE}{DIM} rust target ({DIMRESET}{BLUE}rustup target add wasm32-unknown-unknown{WHITE}{DIM}){DIMRESET}{RESET}" ,
160- ITALIC = ITALIC ,
161- DIM = DIM ,
162- DIMRESET = DIMRESET ,
163- YELLOW = YELLOW ,
164- WHITE = WHITE ,
165- BLUE = BLUE ,
166- RESET = RESET ,
167160 tauri_cli_cmd = tauri_cli_cmd,
168161 ) ,
169162 ) ,
170163 Template :: Vanilla if pkg_manager == PackageManager :: Cargo => Some (
171164 format ! (
172165 "{ITALIC}{DIM}You also need to install{DIMRESET} {YELLOW}tauri-cli{WHITE} {DIM}({DIMRESET}{BLUE}{tauri_cli_cmd}{WHITE}{DIM})" ,
173- ITALIC = ITALIC ,
174- DIM = DIM ,
175- DIMRESET = DIMRESET ,
176- YELLOW = YELLOW ,
177- WHITE = WHITE ,
178- BLUE = BLUE ,
179166 tauri_cli_cmd = tauri_cli_cmd,
180167 ) ,
181168 ) ,
@@ -191,7 +178,7 @@ impl<'a> Template {
191178 alpha : bool ,
192179 mobile : bool ,
193180 ) -> anyhow:: Result < ( ) > {
194- let manifest_bytes = FRAGMENTS :: get ( & format ! ( "fragment-{}/_cta_manifest_" , self ) )
181+ let manifest_bytes = FRAGMENTS :: get ( & format ! ( "fragment-{self }/_cta_manifest_" ) )
195182 . with_context ( || "Failed to get manifest bytes" ) ?
196183 . data ;
197184 let manifest_str = String :: from_utf8 ( manifest_bytes. to_vec ( ) ) ?;
@@ -322,15 +309,15 @@ impl<'a> Template {
322309 . next ( )
323310 . unwrap ( )
324311 . as_os_str ( )
325- == path:: PathBuf :: from ( format ! ( "fragment-{}" , self ) )
312+ == path:: PathBuf :: from ( format ! ( "fragment-{self}" ) )
326313 } ) {
327314 write_file ( & file) ?;
328315 }
329316
330317 // then write extra files specified in the fragment manifest
331318 for ( src, dest) in manifest. files {
332- let data = FRAGMENTS :: get ( & format ! ( "_assets_/{}" , src ) )
333- . with_context ( || format ! ( "Failed to get asset file bytes: {}" , src ) ) ?
319+ let data = FRAGMENTS :: get ( & format ! ( "_assets_/{src}" ) )
320+ . with_context ( || format ! ( "Failed to get asset file bytes: {src}" ) ) ?
334321 . data ;
335322 let dest = target_dir. join ( dest) ;
336323 let parent = dest. parent ( ) . unwrap ( ) ;
0 commit comments