@@ -61,7 +61,6 @@ use crate::{
6161 dist:: { self , PartialToolchainDesc , Profile , TargetTriple , ToolchainDesc } ,
6262 errors:: RustupError ,
6363 install:: UpdateStatus ,
64- notifications:: Notification ,
6564 process:: { Process , terminalsource} ,
6665 toolchain:: {
6766 DistributableToolchain , MaybeOfficialToolchainName , ResolvableToolchainName , Toolchain ,
@@ -1004,7 +1003,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
10041003 // Delete RUSTUP_HOME
10051004 let rustup_dir = home:: rustup_home ( ) ?;
10061005 if rustup_dir. exists ( ) {
1007- utils:: remove_dir ( "rustup_home" , & rustup_dir, & |_ : Notification < ' _ > | { } ) ?;
1006+ utils:: remove_dir ( "rustup_home" , & rustup_dir) ?;
10081007 }
10091008
10101009 info ! ( "removing cargo home" ) ;
@@ -1026,7 +1025,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
10261025 } ) ?;
10271026 if dirent. file_name ( ) . to_str ( ) != Some ( "bin" ) {
10281027 if dirent. path ( ) . is_dir ( ) {
1029- utils:: remove_dir ( "cargo_home" , & dirent. path ( ) , & |_ : Notification < ' _ > | { } ) ?;
1028+ utils:: remove_dir ( "cargo_home" , & dirent. path ( ) ) ?;
10301029 } else {
10311030 utils:: remove_file ( "cargo_home" , & dirent. path ( ) ) ?;
10321031 }
@@ -1054,7 +1053,7 @@ pub(crate) fn uninstall(no_prompt: bool, process: &Process) -> Result<utils::Exi
10541053 let file_is_tool = name. to_str ( ) . map ( |n| tools. iter ( ) . any ( |t| * t == n) ) ;
10551054 if file_is_tool == Some ( false ) {
10561055 if dirent. path ( ) . is_dir ( ) {
1057- utils:: remove_dir ( "cargo_home" , & dirent. path ( ) , & |_ : Notification < ' _ > | { } ) ?;
1056+ utils:: remove_dir ( "cargo_home" , & dirent. path ( ) ) ?;
10581057 } else {
10591058 utils:: remove_file ( "cargo_home" , & dirent. path ( ) ) ?;
10601059 }
0 commit comments