Skip to content

Redundant closure return types inlay hints #12319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NotWearingPants opened this issue May 19, 2022 · 0 comments · Fixed by #12320
Closed

Redundant closure return types inlay hints #12319

NotWearingPants opened this issue May 19, 2022 · 0 comments · Fixed by #12320

Comments

@NotWearingPants
Copy link
Contributor

With closure return types inlay hints enabled, the return type is reported even when it is specified explicitly:

image


rust-analyzer version: rust-analyzer version: 7e95c14 2022-05-17 stable

rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)

relevant settings: "rust-analyzer.inlayHints.closureReturnTypeHints.enable": true

bors added a commit that referenced this issue May 19, 2022
Hide closure ret hints if ret type is specified

Fixes #12319
@bors bors closed this as completed in 641b78a May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant