diff --git a/src/utils/test_helper.rs b/src/utils/test_helper.rs index 6b52118..7fc8b13 100644 --- a/src/utils/test_helper.rs +++ b/src/utils/test_helper.rs @@ -18,13 +18,6 @@ pub struct Context { pub repo_dir: PathBuf, } -impl Drop for Context { - fn drop(&mut self) { - rm_rf(self.local.path().parent().unwrap()); - rm_rf(self.remote.path()); - } -} - pub fn setup_fresh() -> Context { // create temporary directory let temp_dir = TempDir::new("rsl_test") @@ -92,10 +85,6 @@ pub fn do_work_on_branch(repo: &Repository, branch_name: &str) -> () { git::add_and_commit(&repo, None, "a commit with some work", branch_name).unwrap(); } -fn rm_rf(path: &Path) { - fs::remove_dir_all(&path).unwrap(); -} - #[cfg(test)] mod tests { use super::*;