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

wrong: warning: unneeded return statement #13457

Closed
yiyue-reimu opened this issue Sep 26, 2024 · 0 comments · Fixed by #13464
Closed

wrong: warning: unneeded return statement #13457

yiyue-reimu opened this issue Sep 26, 2024 · 0 comments · Fixed by #13464
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@yiyue-reimu
Copy link

yiyue-reimu commented Sep 26, 2024

Summary

Wrong message

Reproducer

While im writing the document for https://github.com/genmeta/gm-quic/blob/main/qbase/src/util/future.rs#L206, the clippy reporeted a wrong message.

I expected to see this happen:

No warn.

Instead, this happened:

Image

Version

rustc 1.83.0-nightly (9e394f551 2024-09-25)
binary: rustc
commit-hash: 9e394f551c050ff03c6fc57f190e0761cf0be6e8
commit-date: 2024-09-25
host: aarch64-apple-darwin
release: 1.83.0-nightly
LLVM version: 19.1.0

Additional Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant