Currently, as far as I know, there is no way to close a file and handle errors with closing it. It would be useful to add a method to File that allows us to handle any potential errors instead of them being ignored.
fn close(self) -> std::io::Result<()>
Currently, as far as I know, there is no way to close a file and handle errors with closing it. It would be useful to add a method to
Filethat allows us to handle any potential errors instead of them being ignored.