We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0997f49 commit ca4e8a2Copy full SHA for ca4e8a2
1 file changed
src/lib.rs
@@ -89,7 +89,10 @@ impl AtomicWriter {
89
/// Commit the contents of the temporary file to the destination file.
90
fn commit(&mut self) -> PyResult<()> {
91
// Take ownership of the underlying wrtier.
92
- let mut bufwriter = self.inner.take().ok_or_else(|| PyValueError::new_err("I/O operation on closed file."))?;
+ let mut bufwriter = self
93
+ .inner
94
+ .take()
95
+ .ok_or_else(|| PyValueError::new_err("I/O operation on closed file."))?;
96
97
// As per docs: "It is critical to call flush before BufWriter<W> is dropped."
98
bufwriter
0 commit comments