-
Notifications
You must be signed in to change notification settings - Fork 13
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): 1.83's empty_line_after_outer_attr
and empty_line_after_doc_comments
#4639
base: develop
Are you sure you want to change the base?
Conversation
@@ -560,13 +560,11 @@ pub struct ProtocolConfig { | |||
// entire object, just consulting an ID -> tx digest map | |||
obj_access_cost_verify_per_byte: Option<u64>, | |||
|
|||
/// === Gas version. gas model === | |||
|
|||
// === Gas version. gas model === |
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.
Side-effect is that formatting removes the newline though :(
empty_line_after_outer_attr
empty_line_after_outer_attr
and empty_line_after_doc_comments
#[rustfmt::skip] | ||
#[allow(clippy::empty_line_after_outer_attr)] | ||
// Tables for recording state for RandomnessManager. |
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.
Could maybe just do this?
#[rustfmt::skip] | |
#[allow(clippy::empty_line_after_outer_attr)] | |
// Tables for recording state for RandomnessManager. | |
// Tables for recording state for RandomnessManager. | |
// |
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.
Or possibly two consecutive newlines
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.
PR is basically draft because I don't know what to do about this :(
These comments used as separators shouldn't be doc comments.
https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments