Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: fix clippy errors on 1.49 #281

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Conversation

saghm
Copy link
Contributor

@saghm saghm commented Jan 6, 2021

No description provided.

Event::ConnectionReady(_) => {
if consecutive_creations < 2 {
panic!("connections not created concurrently");
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried using drop(events) on line 141 instead of using a block, but clippy strangely still gave the error about events being held across an await point

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this appears to be a bug in clippy: rust-lang/rust-clippy#6446

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, nice catch

Event::ConnectionReady(_) => {
if consecutive_creations < 2 {
panic!("connections not created concurrently");
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this appears to be a bug in clippy: rust-lang/rust-clippy#6446

@saghm saghm merged commit 0a0f82f into mongodb:master Jan 6, 2021
@saghm saghm deleted the clippy-1.49 branch January 6, 2021 18:31
No9 pushed a commit to No9/mongo-rust-driver that referenced this pull request Jan 12, 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.

3 participants