diff --git a/vm/src/stdlib/socket.rs b/vm/src/stdlib/socket.rs index 4f4384741..e0fd0a505 100644 --- a/vm/src/stdlib/socket.rs +++ b/vm/src/stdlib/socket.rs @@ -458,8 +458,8 @@ impl SocketRef { } } - fn settimeout(self, option_timeout: Option, vm: &VirtualMachine) -> PyResult<()> { - match option_timeout { + fn settimeout(self, timeout: Option, vm: &VirtualMachine) -> PyResult<()> { + match timeout { Some(timeout) => { self.timeout .borrow_mut()