Skip to content

Maybe avoid duplication for clone()d parameter name inlay hints? #6315

@shish

Description

@shish

I don't know if this is a VSCode thing, a VSCode-rust thing, a rust-analyzer thing, or something else, so apologies if this is in the wrong place :)

It seems that the parameter name inlay hints are smart enough that when I pass a variable named cache or args.cache into the function's cache parameter, it doesn't duplicate the parameter name there. But if I pass name.clone() to the name parameter, it treats that as a different thing, even though I as a (admittedly non-expert) user would say that that's redundant - should the parameter names be hidden here?

Screenshot 2020-10-21 at 20 05 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyE-has-instructionsIssue has some instructions and pointers to code to get started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions