-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix clippy warnings #2014
Conversation
- `clippy::uninlined_format_args`
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.
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: (), |
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.
This is a breaking change, can you revert it please?
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.
Isn't the added #[non_exhaustive]
attribute the same as the private field?
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.
No, it is exposed to preprocessors. There was a similar attempt earlier which was reverted: #1848
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 removed the change.
@rustbot author |
Closing as I have applied some clippy fixes in #2083. |
No description provided.