Skip to content

New lint affecting tracing::instrument macro when returning an impl #2613

@damccull

Description

@damccull

When I updated to the latest clippy via rustup update, I ran into a new lint that doesn't seem to like returning impl SomeTrait: https://rust-lang.github.io/rust-clippy/master/index.html#/let_with_type_underscore

So tracing, when used like this is causing this lint to trigger.

#[tracing::instrument(name = "Login form", skip(flashes))]
pub async fn login_form(flashes: IncomingFlashes) -> impl IntoResponse {
//...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions