-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fud2] Even more confidently delete temp dir (#2072)
In #2058, I made fud2 clean up the `.fud2` temporary directory even when Ninja exited with an erorr. Unfortunately, that doesn't cover other possible errors, such as when launching the Ninja process fails altogether: #2058 (comment) Rather than patching one error at a time, this uses `Drop` to be sure we do this when any error occurs. It also means it will get deleted even when we panic, which is *definitely* overkill, but I guess it's not a big deal.
- Loading branch information
Showing
2 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters