Skip to content

refactor: make clippy happy with nightly-20241008#46

Merged
andylokandy merged 5 commits into
fast:mainfrom
MrCroxx:xx/fix-nightly-20241008
Oct 10, 2024
Merged

refactor: make clippy happy with nightly-20241008#46
andylokandy merged 5 commits into
fast:mainfrom
MrCroxx:xx/fix-nightly-20241008

Conversation

@MrCroxx

@MrCroxx MrCroxx commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

This PR fixed the elided lifetime check. But the needless return warning seems to be a false-positive bug.

image

Signed-off-by: MrCroxx <mrcroxx@outlook.com>
@MrCroxx MrCroxx mentioned this pull request Oct 8, 2024
@MrCroxx

MrCroxx commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

Blocked by rust-lang/rust-clippy#13464

@andylokandy

Copy link
Copy Markdown
Collaborator

do you have a issue to the cippy false positive bug?

@MrCroxx

MrCroxx commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

do you have a issue to the cippy false positive bug?

Here is it. #46 (comment)

@andylokandy

andylokandy commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator

ohhh. I've overseen the comment XD. you can allow the lint with a comment to the issue url.

Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
@MrCroxx

MrCroxx commented Oct 9, 2024

Copy link
Copy Markdown
Contributor Author

Bypass the check on the nightly toolchain with rustversion and expect. If the issue is fixed, the nightly CI will not pass, which can be treated as a reminder to remove the patch.

Comment thread fastrace/examples/asynchronous.rs Outdated
}
}

// FIXME: Remove `expect` after the issue is fixed. https://github.com/rust-lang/rust-clippy/issues/13458

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please allow the lint in fastrace/Cargo.toml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

Signed-off-by: MrCroxx <mrcroxx@outlook.com>
@andylokandy andylokandy merged commit 7272b23 into fast:main Oct 10, 2024
@andylokandy andylokandy mentioned this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants