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

refactor: make clippy happy with nightly-20241008 #46

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

MrCroxx
Copy link
Contributor

@MrCroxx MrCroxx commented Oct 8, 2024

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

image

@MrCroxx MrCroxx mentioned this pull request Oct 8, 2024
@MrCroxx
Copy link
Contributor Author

MrCroxx commented Oct 8, 2024

Blocked by rust-lang/rust-clippy#13464

@andylokandy
Copy link
Collaborator

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

@MrCroxx
Copy link
Contributor Author

MrCroxx commented Oct 8, 2024

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

Here is it. #46 (comment)

@andylokandy
Copy link
Collaborator

andylokandy commented Oct 8, 2024

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

@MrCroxx
Copy link
Contributor Author

MrCroxx commented Oct 9, 2024

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.

@@ -36,6 +36,8 @@ async fn other_job() {
}
}

// FIXME: Remove `expect` after the issue is fixed. https://github.com/rust-lang/rust-clippy/issues/13458
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

done.

@andylokandy andylokandy merged commit 7272b23 into fast:main Oct 10, 2024
11 checks passed
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