@@ -2571,8 +2571,7 @@ fn trusted_curl_path() -> SetupResult<PathBuf> {
25712571 #[ cfg( target_os = "windows" ) ]
25722572 let candidates = {
25732573 let windows = std:: env:: var_os ( "SystemRoot" )
2574- . map ( PathBuf :: from)
2575- . unwrap_or_else ( || PathBuf :: from ( r"C:\Windows" ) ) ;
2574+ . map_or_else ( || PathBuf :: from ( r"C:\Windows" ) , PathBuf :: from) ;
25762575 vec ! [ windows. join( "System32" ) . join( "curl.exe" ) ]
25772576 } ;
25782577 #[ cfg( not( target_os = "windows" ) ) ]
@@ -3788,7 +3787,7 @@ mod imp {
37883787 Log ( String ) ,
37893788 }
37903789
3791- fn transcript_compatibility_event ( event : TranscriptEvent ) -> Event {
3790+ fn transcript_compatibility_event ( event : & TranscriptEvent ) -> Event {
37923791 let is_final = event. is_final ( ) ;
37933792 let segment = event. segment ( ) ;
37943793 Event :: Result ( SessionResult {
@@ -4525,10 +4524,8 @@ mod imp {
45254524 self . cleanup
45264525 . install ( Some ( Arc :: clone ( speech) ) , Arc :: clone ( recording) ) ;
45274526 } ,
4528- PendingWindowsStart :: RecordOnly { recording, .. } => {
4529- self . cleanup . install ( None , Arc :: clone ( recording) ) ;
4530- } ,
4531- PendingWindowsStart :: LocalModel { recording, .. } => {
4527+ PendingWindowsStart :: RecordOnly { recording, .. }
4528+ | PendingWindowsStart :: LocalModel { recording, .. } => {
45324529 self . cleanup . install ( None , Arc :: clone ( recording) ) ;
45334530 } ,
45344531 }
@@ -4556,7 +4553,7 @@ mod imp {
45564553 . name ( "wisp-windows-transcripts" . into ( ) )
45574554 . spawn ( move || {
45584555 while let Ok ( event) = transcripts. recv ( ) {
4559- enqueue_event ( & sender, transcript_compatibility_event ( event) ) ;
4556+ enqueue_event ( & sender, transcript_compatibility_event ( & event) ) ;
45604557 }
45614558 } ) ;
45624559 let notice = match publisher {
0 commit comments