Closed sizumita closed 2 years ago
endpoint.connect returns NewConnection so I think we should rename from connection to new_connection. And let connection = new_connection.connection; is easy to understand but it's not good because of partial move. Any ideas?
endpoint.connect
let connection = new_connection.connection;
I think it would be nice to destruct it? let NewConnection { connection, .. } = new_connection;.
let NewConnection { connection, .. } = new_connection;
That's a good one.
endpoint.connect
returns NewConnection so I think we should rename from connection to new_connection. Andlet connection = new_connection.connection;
is easy to understand but it's not good because of partial move. Any ideas?