Skip to content

Commit ca4e8a2

Browse files
committed
chore: fmt
1 parent 0997f49 commit ca4e8a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ impl AtomicWriter {
8989
/// Commit the contents of the temporary file to the destination file.
9090
fn commit(&mut self) -> PyResult<()> {
9191
// 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."))?;
92+
let mut bufwriter = self
93+
.inner
94+
.take()
95+
.ok_or_else(|| PyValueError::new_err("I/O operation on closed file."))?;
9396

9497
// As per docs: "It is critical to call flush before BufWriter<W> is dropped."
9598
bufwriter

0 commit comments

Comments
 (0)