Skip to content

wrong: warning: unneeded return statement #13457

Closed
@eareimu

Description

@eareimu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions