Skip to content

Fix clippy warnings #2014

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

Closed
wants to merge 7 commits into from
Closed

Fix clippy warnings #2014

wants to merge 7 commits into from

Conversation

nickelc
Copy link
Contributor

@nickelc nickelc commented Feb 9, 2023

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Feb 9, 2023
- `clippy::uninlined_format_args`
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Can you maybe put the different lints into different commits so that it is easier to review?

src/book/book.rs Outdated
pub struct Book {
/// The sections in this book.
pub sections: Vec<BookItem>,
__non_exhaustive: (),
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking change, can you revert it please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isn't the added #[non_exhaustive] attribute the same as the private field?

Copy link
Member

Choose a reason for hiding this comment

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

No, it is exposed to preprocessors. There was a similar attempt earlier which was reverted: #1848

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 removed the change.

@ehuss
Copy link
Contributor

ehuss commented Mar 4, 2023

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. and removed S-waiting-on-review Status: waiting on a review labels Mar 4, 2023
@ehuss
Copy link
Contributor

ehuss commented May 13, 2023

Closing as I have applied some clippy fixes in #2083.

@ehuss ehuss closed this May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants