()
| 526 | |
| 527 | impl TestGuard { |
| 528 | fn new() -> Self { |
| 529 | let original = env::current_dir().unwrap(); |
| 530 | let temp = TempDir::new().unwrap(); |
| 531 | env::set_current_dir(temp.path()).unwrap(); |
| 532 | Self { |
| 533 | original_dir: original, |
| 534 | _temp_dir: temp, |
| 535 | } |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | impl Drop for TestGuard { |