()
| 557 | |
| 558 | impl TestGuard { |
| 559 | fn new() -> Self { |
| 560 | let original = env::current_dir().unwrap(); |
| 561 | let temp = TempDir::new().unwrap(); |
| 562 | env::set_current_dir(temp.path()).unwrap(); |
| 563 | Self { |
| 564 | original_dir: original, |
| 565 | _temp_dir: temp, |
| 566 | } |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | impl Drop for TestGuard { |