Context
This issue was raised during the review of PR #89: #89
Review comment: #89 (comment)
Description
In tests/runner_tests.rs, the test run_build_with_emit_creates_parent_dirs contains a redundant drop(ninja_path) call at the end. This line is unnecessary because:
- The
ninja_path is a PathBuf which doesn't require explicit dropping
- The cleanup closure already handles the PATH restoration
- The temporary directory will be cleaned up automatically when it goes out of scope
Task
Remove the line drop(ninja_path); from the end of the run_build_with_emit_creates_parent_dirs test function (around line 200).
The cleanup section should only contain:
// Cleanup env; TempDir cleans up on drop.
cleanup();
Requested by
@leynos