Closed RasmusRendal closed 1 year ago
Hi,
I didn't knew Rust had destructuring tbh, I rarely see this. Nonetheless, see corresponding PR #618 for the fix. I'll do a new release after #618 has been merged.
After #619 is merged, you can upgrade to the newest version.
Describe the bug Consider the following function:
Apparently, you can use irrefutable patterns in function parameters to deconstruct your input.
But the parser in the helper does not account for that, leading to a panic:
https://github.com/kkoomen/vim-doge/blob/4a1b44fa7c09556b79e87316ede5a7a45ff601dc/helper/src/rust/parser.rs#L103-L108
To Reproduce
do_thing
Expected behavior
Output of
./bin/vim-doge-helper --version
Built from source using commit 4a1b44fa7c09556b79e87316ede5a7a45ff601dc
Output of
vim --version
Not applicable