Skip to content

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Dec 2, 2021

No description provided.

@abr-egn abr-egn requested a review from patrickfreed December 3, 2021 15:44
src/coll/mod.rs Outdated
let docs: Vec<&T> = ds.iter().skip(n_attempted).map(Borrow::borrow).collect();
let insert = Insert::new(self.namespace(), docs, options.clone());

#[allow(clippy::needless_option_as_deref)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This appears to be a clippy false-positive; the suggestion (just session) doesn't work because this is in a loop, which I think is context clippy isn't looking at.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, see rust-lang/rust-clippy#8047. I actually already pushed a fix for these errors last night, so you can omit these changes from here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, thanks; removed.

@abr-egn abr-egn force-pushed the RUST-1122/x509-auth branch from 49f3f12 to 4dd6fc7 Compare December 3, 2021 19:50
Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

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

LGTM!

@Zageron
Copy link

Zageron commented Dec 9, 2021

Hype

@abr-egn abr-egn merged commit 7872dae into mongodb:master Dec 9, 2021
abr-egn added a commit to abr-egn/mongo-rust-driver that referenced this pull request Dec 13, 2021
abr-egn added a commit to abr-egn/mongo-rust-driver that referenced this pull request Dec 14, 2021
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