Skip to content

Conversation

@isabelatkinson
Copy link
Contributor

No description provided.

}
match session.into() {
Some(session) => {
if !Arc::ptr_eq(&self.inner, &session.client().inner) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have PartialEq derived for Client (and it wouldn't make much sense to do so), so this verifies that the inner fields on both the clients point to the same data.

Copy link
Contributor

@NBSquare NBSquare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@isabelatkinson isabelatkinson merged commit 77b6f01 into mongodb:master Aug 2, 2021
@isabelatkinson isabelatkinson deleted the RUST-945 branch August 2, 2021 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants