Skip to content

fix needless_borrows_for_generic_args clippy lint #14918

Description

@xtqqczze
$ cargo +beta clippy -q --workspace --all-targets --all-features
warning: the borrowed expression implements the required traits
   --> src/uu/printf/src/printf.rs:103:28
    |
103 |         match item.map_err(&raise)?.write(stdout(), &mut args)? {
    |                            ^^^^^^ help: change this to: `raise`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#needless_borrows_for_generic_args
    = note: `-W clippy::needless-borrows-for-generic-args` implied by `-W clippy::all`
    = help: to override `-W clippy::all` add `#[allow(clippy::needless_borrows_for_generic_args)]`
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions