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 new manual_non_exhaustive clippy lint #2669

Merged
merged 1 commit into from
Jul 20, 2020
Merged

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Jul 19, 2020

Our minimum supported Rust version does not allow switching to #[non_exhaustive].

@Darksonn Darksonn added A-tokio-util Area: The tokio-util crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-codec Module: tokio-util/codec labels Jul 19, 2020
@Darksonn Darksonn added the A-ci Area: The continuous integration setup label Jul 20, 2020
@@ -284,6 +284,7 @@ where
///
/// [`Framed`]: crate::codec::Framed
#[derive(Debug)]
#[allow(clippy::manual_non_exhaustive)]
Copy link
Member

Choose a reason for hiding this comment

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

In general, when adding allow attributes, I like to add a comment explaining why that lint is allowed. Not a blocker, but could be nice.

@hawkw hawkw merged commit b094ee9 into tokio-rs:master Jul 20, 2020
@Darksonn Darksonn deleted the fix-clippy branch July 20, 2020 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration setup A-tokio-util Area: The tokio-util crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-codec Module: tokio-util/codec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants