We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ok()
rust-analyzer version: rust-analyzer 1.80.0 (05147895 2024-07-21)
rustc version: rustc 1.80.0 (051478957 2024-07-21)
editor or extension: Vim 9.1 coc-rust-analyzer
code snippet to reproduce:
type Result<T> = std::result::Result<T, ()>; fn foo() -> Result<()> {} fn main() { }
quick fix:
type Result<T> = std::result::Result<T, ()>; fn foo() -> Result<()> Ok({}) fn main() { }
expect:
type Result<T> = std::result::Result<T, ()>; fn foo() -> Result<()> { Ok(()) } fn main() { }
The text was updated successfully, but these errors were encountered:
Ok(())
Ok
f149dc5
Successfully merging a pull request may close this issue.
rust-analyzer version: rust-analyzer 1.80.0 (05147895 2024-07-21)
rustc version: rustc 1.80.0 (051478957 2024-07-21)
editor or extension: Vim 9.1 coc-rust-analyzer
code snippet to reproduce:
quick fix:
expect:
The text was updated successfully, but these errors were encountered: