Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0
Description
FileWriter and StreamWriter call `self.finish().unwrap()` in their `Drop` implementations if the write has not already been finished. However, a common reason for the write to not be finished is an earlier IO error on the underlying stream. In that case, the destructor will panic, which is not desired.
Attachments
Issue Links
- links to