File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ mod imp {
274
274
key_reg. set_string ( "URL Protocol" , "" ) ?;
275
275
276
276
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" ) ) ?;
278
278
279
279
let cmd_reg = CURRENT_USER . create ( format ! ( "{key_base}\\ shell\\ open\\ command" ) ) ?;
280
280
281
- cmd_reg. set_string ( "" , & format ! ( "\" {}\" \" %1\" " , & exe ) ) ?;
281
+ cmd_reg. set_string ( "" , & format ! ( "\" {exe }\" \" %1\" " ) ) ?;
282
282
283
283
Ok ( ( ) )
284
284
}
@@ -408,13 +408,13 @@ mod imp {
408
408
_protocol. as_ref( )
409
409
) ) ?;
410
410
411
- let registered_cmd: String = cmd_reg. get_string ( "" ) ?;
411
+ let registered_cmd = cmd_reg. get_string ( "" ) ?;
412
412
413
413
let exe = dunce:: simplified ( & tauri:: utils:: platform:: current_exe ( ) ?)
414
414
. display ( )
415
415
. to_string ( ) ;
416
416
417
- Ok ( registered_cmd == format ! ( "{} \" %1\" " , & exe ) )
417
+ Ok ( registered_cmd == format ! ( "\" {exe} \" \" %1\" " ) )
418
418
}
419
419
#[ cfg( target_os = "linux" ) ]
420
420
{
You can’t perform that action at this time.
0 commit comments