Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs pointing out early dop pitfalls #165

Merged
merged 2 commits into from
Jan 8, 2022
Merged

Add docs pointing out early dop pitfalls #165

merged 2 commits into from
Jan 8, 2022

Conversation

Stebalien
Copy link
Owner

This commit adds a section to the src/libs.rs docs pointing out an easily encounterable error when ussing tempdir() with apis that are generic over AsRef<Path>, like Command::current_dir, resulting in the directory being dropped to early (As pointed out in #115).

replaces #116 with some fixups.

robinwilliam.hundt and others added 2 commits January 8, 2022 11:05
This commit adds a section to the `src/libs.rs` docs
pointing out an easily encounterable error when
ussing `tempdir()` with apis that are generic over
`AsRef<Path>`, like `Command::current_dir`, resulting
in the directory being dropped to early (As pointed out in #115).
@Stebalien Stebalien merged commit e49d9df into master Jan 8, 2022
@Stebalien Stebalien deleted the pr-116 branch January 8, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant