Fix let_underscore_lock Clippy errror

This commit is contained in:
Padraic Fanning
2022-02-24 19:57:00 -05:00
parent 35cd720949
commit 6d1ea6d996

View File

@@ -3277,7 +3277,7 @@ mod _io {
#[pymethod]
fn close(self, vm: &VirtualMachine) -> PyResult<()> {
let _ = self.try_resizable(vm)?;
drop(self.try_resizable(vm)?);
self.closed.store(true);
Ok(())
}