From 49a90d4c31148a6533d9ee9a288f42b454b2f421 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 16 Oct 2020 19:46:03 +0200 Subject: Switch from not_bash to xshell --- xtask/src/pre_cache.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xtask/src/pre_cache.rs') diff --git a/xtask/src/pre_cache.rs b/xtask/src/pre_cache.rs index 47ba6ba24..569f88f68 100644 --- a/xtask/src/pre_cache.rs +++ b/xtask/src/pre_cache.rs @@ -4,8 +4,7 @@ use std::{ }; use anyhow::Result; - -use crate::not_bash::{fs2, rm_rf}; +use xshell::rm_rf; pub struct PreCacheCmd; @@ -26,7 +25,7 @@ impl PreCacheCmd { } } - fs2::remove_file("./target/.rustc_info.json")?; + rm_rf("./target/.rustc_info.json")?; let to_delete = read_dir("./crates", FileType::is_dir)? .into_iter() -- cgit v1.2.3