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

Fix all clippy lints in tests #2573

Merged
merged 3 commits into from
May 31, 2020
Merged

Conversation

MikailBag
Copy link
Contributor

@MikailBag MikailBag commented May 30, 2020

First commit allows blacklisted_name.
Second commit fixes all other warnings .
Third commit updates CI config so that clippy will check tests too.

@Darksonn Darksonn added A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. labels May 31, 2020
@Darksonn Darksonn merged commit 9264b83 into tokio-rs:master May 31, 2020
fegies added a commit to fegies/tokio that referenced this pull request Jun 5, 2020
Trying to remove an already expired Timer Wheel entry (called by
DelayQueue.reset()) in some cases as described in (tokio-rs#2573) causes panics.

This prevents this panic by omitting removal in these cases
jensim pushed a commit to jensim/tokio that referenced this pull request Jun 7, 2020
fegies added a commit to fegies/tokio that referenced this pull request Jun 11, 2020
Trying to remove an already expired Timer Wheel entry (called by
DelayQueue.reset()) in some cases as described in (tokio-rs#2573) causes panics.

This prevents this panic by omitting removal in these cases
fegies added a commit to fegies/tokio that referenced this pull request Jun 15, 2020
Trying to remove an already expired Timer Wheel entry (called by
DelayQueue.reset()) causes panics in some cases as described in (tokio-rs#2573)

This prevents this panic by removing the item from the expired queue and
not the wheel in these cases
Darksonn pushed a commit that referenced this pull request Jul 26, 2020
* Add Unit Test demonstrating the issue

This test demonstrates a panic that occurs when the user inserts an
item with an instant in the past, and then tries to reset the timeout
using the returned key

* Guard reset_at against removals of expired items

Trying to remove an already expired Timer Wheel entry (called by
DelayQueue.reset()) causes panics in some cases as described in (#2573)

This prevents this panic by removing the item from the expired queue and
not the wheel in these cases

Fixes: #2473
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants