@@ -61,7 +61,6 @@ use crate::{
61
61
dist:: { self , PartialToolchainDesc , Profile , TargetTriple , ToolchainDesc } ,
62
62
errors:: RustupError ,
63
63
install:: UpdateStatus ,
64
- notifications:: Notification ,
65
64
process:: { Process , terminalsource} ,
66
65
toolchain:: {
67
66
DistributableToolchain , MaybeOfficialToolchainName , ResolvableToolchainName , Toolchain ,
@@ -1004,7 +1003,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
1004
1003
// Delete RUSTUP_HOME
1005
1004
let rustup_dir = home:: rustup_home ( ) ?;
1006
1005
if rustup_dir. exists ( ) {
1007
- utils:: remove_dir ( "rustup_home" , & rustup_dir, & |_ : Notification < ' _ > | { } ) ?;
1006
+ utils:: remove_dir ( "rustup_home" , & rustup_dir) ?;
1008
1007
}
1009
1008
1010
1009
info ! ( "removing cargo home" ) ;
@@ -1026,7 +1025,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
1026
1025
} ) ?;
1027
1026
if dirent. file_name ( ) . to_str ( ) != Some ( "bin" ) {
1028
1027
if dirent. path ( ) . is_dir ( ) {
1029
- utils:: remove_dir ( "cargo_home" , & dirent. path ( ) , & |_ : Notification < ' _ > | { } ) ?;
1028
+ utils:: remove_dir ( "cargo_home" , & dirent. path ( ) ) ?;
1030
1029
} else {
1031
1030
utils:: remove_file ( "cargo_home" , & dirent. path ( ) ) ?;
1032
1031
}
@@ -1054,7 +1053,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
1054
1053
let file_is_tool = name. to_str ( ) . map ( |n| tools. iter ( ) . any ( |t| * t == n) ) ;
1055
1054
if file_is_tool == Some ( false ) {
1056
1055
if dirent. path ( ) . is_dir ( ) {
1057
- utils:: remove_dir ( "cargo_home" , & dirent. path ( ) , & |_ : Notification < ' _ > | { } ) ?;
1056
+ utils:: remove_dir ( "cargo_home" , & dirent. path ( ) ) ?;
1058
1057
} else {
1059
1058
utils:: remove_file ( "cargo_home" , & dirent. path ( ) ) ?;
1060
1059
}
0 commit comments