mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix clippy error
This commit is contained in:
@@ -237,7 +237,7 @@ impl SocketRef {
|
||||
return Err(vm.new_exception(error_type, e.to_string()));
|
||||
}
|
||||
};
|
||||
TcpStream::connect_timeout(&sock_addr, duration.clone())
|
||||
TcpStream::connect_timeout(&sock_addr, *duration)
|
||||
} else {
|
||||
TcpStream::connect(address_string)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user