Skip to content

Remove redundant drop(ninja_path) in run_build_with_emit_creates_parent_dirs test #98

@coderabbitai

Description

@coderabbitai

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:

  1. The ninja_path is a PathBuf which doesn't require explicit dropping
  2. The cleanup closure already handles the PATH restoration
  3. 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

Metadata

Metadata

Assignees

Labels

lowAin't annoying anyone but the QA department

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions