File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ mod imp {
274274 key_reg. set_string ( "URL Protocol" , "" ) ?;
275275
276276 let icon_reg = CURRENT_USER . create ( format ! ( "{key_base}\\ DefaultIcon" ) ) ?;
277- icon_reg. set_string ( "" , & format ! ( "{},0" , & exe ) ) ?;
277+ icon_reg. set_string ( "" , & format ! ( "{exe },0" ) ) ?;
278278
279279 let cmd_reg = CURRENT_USER . create ( format ! ( "{key_base}\\ shell\\ open\\ command" ) ) ?;
280280
281- cmd_reg. set_string ( "" , & format ! ( "\" {}\" \" %1\" " , & exe ) ) ?;
281+ cmd_reg. set_string ( "" , & format ! ( "\" {exe }\" \" %1\" " ) ) ?;
282282
283283 Ok ( ( ) )
284284 }
@@ -408,13 +408,13 @@ mod imp {
408408 _protocol. as_ref( )
409409 ) ) ?;
410410
411- let registered_cmd: String = cmd_reg. get_string ( "" ) ?;
411+ let registered_cmd = cmd_reg. get_string ( "" ) ?;
412412
413413 let exe = dunce:: simplified ( & tauri:: utils:: platform:: current_exe ( ) ?)
414414 . display ( )
415415 . to_string ( ) ;
416416
417- Ok ( registered_cmd == format ! ( "{} \" %1\" " , & exe ) )
417+ Ok ( registered_cmd == format ! ( "\" {exe} \" \" %1\" " ) )
418418 }
419419 #[ cfg( target_os = "linux" ) ]
420420 {
You can’t perform that action at this time.
0 commit comments