()
| 669 | |
| 670 | impl TestGuard { |
| 671 | fn new() -> Self { |
| 672 | let original = env::current_dir().unwrap(); |
| 673 | let temp = TempDir::new().unwrap(); |
| 674 | env::set_current_dir(temp.path()).unwrap(); |
| 675 | Self { |
| 676 | original_dir: original, |
| 677 | _temp_dir: temp, |
| 678 | } |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | impl Drop for TestGuard { |