Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/utils/test_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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::*;
Expand Down