Skip to content

Latest Clippy tags unused_imports on trait imports spuriously #15442

@TheBlueMatt

Description

@TheBlueMatt

Summary

I honestly can't make heads or tails of why, if you remove the import the build fails in several places.

Lint Name

unused_imports

Reproducer

I honestly don't have a clue as to what the issue is here, so a minimal reproducer is hard.
lightningdevkit/rust-lightning#4000 removes the allows that were previously in place, see the last commit.

Version

rustc stable
info: latest update on 2025-08-07, rust version 1.89.0 (29483883e 2025-08-04)

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions