Description
The unsafe Env::set_var API forces unsafe blocks in user code and tests. Consider providing a safe helper on PathGuard to set PATH values internally and hide the unsafety from consumers.
This would improve the API design by encapsulating the unsafe operations within PathGuard itself, rather than exposing them to consumers of the API.
Context
This suggestion came up during the review of PR #105 which refactored PathGuard for injectable env and added mock testing.
Backlinks
Requested by: @leynos