2d9ed4fd48
fix: format expression parsing edge-cases - Handle positional arguments with formatting options (i.e. `{:b}`). Previously copied `:b` as an argument, producing broken code. - Handle indexed positional arguments (`{0}`) ([reference](https://doc.rust-lang.org/std/fmt/#positional-parameters)). Previously copied over `0` as an argument. Note: the assist also breaks when named arguments are used (`"{name}$0", name = 2 + 2` is converted to `"{}"$0, name`. I'm working on fix for that as well. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |