-
Notifications
You must be signed in to change notification settings - Fork 164
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
Conversation
Event::ConnectionReady(_) => { | ||
if consecutive_creations < 2 { | ||
panic!("connections not created concurrently"); | ||
{ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"); | ||
{ |
There was a problem hiding this comment.
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
No description provided.