@@ -375,7 +375,7 @@ pub fn complete_windows_uninstall(process: &Process) -> Result<utils::ExitCode>
375375 . stdout ( Stdio :: null ( ) )
376376 . stderr ( Stdio :: null ( ) )
377377 . spawn ( )
378- . context ( CLIError :: WindowsUninstallMadness ) ?;
378+ . context ( CliError :: WindowsUninstallMadness ) ?;
379379
380380 Ok ( utils:: ExitCode ( 0 ) )
381381}
@@ -398,7 +398,7 @@ pub(crate) fn wait_for_parent() -> Result<()> {
398398 let snapshot = CreateToolhelp32Snapshot ( TH32CS_SNAPPROCESS , 0 ) ;
399399 if snapshot == INVALID_HANDLE_VALUE {
400400 let err = io:: Error :: last_os_error ( ) ;
401- return Err ( err) . context ( CLIError :: WindowsUninstallMadness ) ;
401+ return Err ( err) . context ( CliError :: WindowsUninstallMadness ) ;
402402 }
403403
404404 let snapshot = scopeguard:: guard ( snapshot, |h| {
@@ -412,15 +412,15 @@ pub(crate) fn wait_for_parent() -> Result<()> {
412412 let success = Process32First ( * snapshot, & mut entry) ;
413413 if success == 0 {
414414 let err = io:: Error :: last_os_error ( ) ;
415- return Err ( err) . context ( CLIError :: WindowsUninstallMadness ) ;
415+ return Err ( err) . context ( CliError :: WindowsUninstallMadness ) ;
416416 }
417417
418418 let this_pid = GetCurrentProcessId ( ) ;
419419 while entry. th32ProcessID != this_pid {
420420 let success = Process32Next ( * snapshot, & mut entry) ;
421421 if success == 0 {
422422 let err = io:: Error :: last_os_error ( ) ;
423- return Err ( err) . context ( CLIError :: WindowsUninstallMadness ) ;
423+ return Err ( err) . context ( CliError :: WindowsUninstallMadness ) ;
424424 }
425425 }
426426
@@ -445,7 +445,7 @@ pub(crate) fn wait_for_parent() -> Result<()> {
445445
446446 if res != WAIT_OBJECT_0 {
447447 let err = io:: Error :: last_os_error ( ) ;
448- return Err ( err) . context ( CLIError :: WindowsUninstallMadness ) ;
448+ return Err ( err) . context ( CliError :: WindowsUninstallMadness ) ;
449449 }
450450 }
451451
@@ -514,7 +514,7 @@ fn get_windows_path_var() -> Result<Option<HSTRING>> {
514514 Ok ( None )
515515 }
516516 Err ( e) if e. code ( ) == HRESULT :: from_win32 ( ERROR_FILE_NOT_FOUND ) => Ok ( Some ( HSTRING :: new ( ) ) ) ,
517- Err ( e) => Err ( e) . context ( CLIError :: WindowsUninstallMadness ) ,
517+ Err ( e) => Err ( e) . context ( CliError :: WindowsUninstallMadness ) ,
518518 }
519519}
520520
@@ -731,7 +731,7 @@ pub(crate) fn delete_rustup_and_cargo_home(process: &Process) -> Result<()> {
731731
732732 if gc_handle == INVALID_HANDLE_VALUE {
733733 let err = io:: Error :: last_os_error ( ) ;
734- return Err ( err) . context ( CLIError :: WindowsUninstallMadness ) ;
734+ return Err ( err) . context ( CliError :: WindowsUninstallMadness ) ;
735735 }
736736
737737 scopeguard:: guard ( gc_handle, |h| {
@@ -741,7 +741,7 @@ pub(crate) fn delete_rustup_and_cargo_home(process: &Process) -> Result<()> {
741741
742742 Command :: new ( gc_exe)
743743 . spawn ( )
744- . context ( CLIError :: WindowsUninstallMadness ) ?;
744+ . context ( CliError :: WindowsUninstallMadness ) ?;
745745
746746 // The catch 22 article says we must sleep here to give
747747 // Windows a chance to bump the processes file reference
0 commit comments