Skip to content

"unwrap_result_return_type" assist breaks on Returns with nested type parameters #14496

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
Godlesschild opened this issue Apr 5, 2023 · 0 comments · Fixed by #14667
Closed
Labels
A-assists C-bug Category: bug

Comments

@Godlesschild
Copy link

rust-analyzer version: rust-analyzer version: 0.4.1462-standalone (e871540 2023-04-04)

rustc version: rustc 1.70.0-nightly (0599b6b93 2023-04-01)

Example:

fn foo() -> Result<Vec<i8>, ()> {
    Ok(vec![1, 2, 3])
}

After applying "unwrap Result return type":

fn foo() -> Vec<i8 {
    vec![1, 2, 3]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants