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(clippy): 1.83's empty_line_after_outer_attr and empty_line_after_doc_comments #4639

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

thibault-martinez
Copy link
Member

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

@thibault-martinez thibault-martinez requested review from a team as code owners December 30, 2024 10:03
@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Dec 30, 2024
@@ -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 ===
Copy link
Member Author

@thibault-martinez thibault-martinez Dec 30, 2024

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 :(

@thibault-martinez thibault-martinez requested a review from a team as a code owner December 30, 2024 10:32
@thibault-martinez thibault-martinez changed the title fix(clippy): 1.83's empty_line_after_outer_attr fix(clippy): 1.83's empty_line_after_outer_attr and empty_line_after_doc_comments Dec 30, 2024
@thibault-martinez thibault-martinez marked this pull request as draft December 30, 2024 10:32
Comment on lines +575 to +577
#[rustfmt::skip]
#[allow(clippy::empty_line_after_outer_attr)]
// Tables for recording state for RandomnessManager.
Copy link
Contributor

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?

Suggested change
#[rustfmt::skip]
#[allow(clippy::empty_line_after_outer_attr)]
// Tables for recording state for RandomnessManager.
// Tables for recording state for RandomnessManager.
//

Copy link
Contributor

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

Copy link
Member Author

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants