You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
println!("{obj.len()}"); is not supported by Rust language, but it would be nice if rust-analyzer could just convert it into println!("{obj_len}", obj_len = obj.len());.
The text was updated successfully, but these errors were encountered:
…esmondWillowbrook
New assist: move_format_string_arg
The name might need some improving.
```rust
fn main() {
print!("{x + 1}");
}
```
to
```rust
fn main() {
print!("{}"$0, x + 1);
}
```
fixes#13180
ref to #5988 for similar work
* extracted `format_like`'s parser to it's own module in `ide-db`
* reworked the parser's API to be more direct
* added assist to extract expressions in format args
println!("{obj.len()}");
is not supported by Rust language, but it would be nice if rust-analyzer could just convert it intoprintln!("{obj_len}", obj_len = obj.len());
.The text was updated successfully, but these errors were encountered: