From 6d1ea6d996bd7c4256b50eb7e15df7abe0165382 Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Thu, 24 Feb 2022 19:57:00 -0500 Subject: [PATCH] Fix let_underscore_lock Clippy errror --- vm/src/stdlib/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/io.rs b/vm/src/stdlib/io.rs index c312a7459..fb9162eae 100644 --- a/vm/src/stdlib/io.rs +++ b/vm/src/stdlib/io.rs @@ -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(()) }