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 clippy rule to avoid wrong usage of tempfile crate #2835

Closed
sarutak opened this issue Aug 9, 2023 · 0 comments
Closed

Add clippy rule to avoid wrong usage of tempfile crate #2835

sarutak opened this issue Aug 9, 2023 · 0 comments

Comments

@sarutak
Copy link
Member

sarutak commented Aug 9, 2023

I added tempfile crate in #2823 .
One pitfall is the usage of TempDir::into_path.
According to the API doc, TempDir::into_path leads the corresponding temporary directory not deleted automatically.
To avoid resource leak I proposes to add a clippy rule.

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

No branches or pull requests

1 participant