Skip to content

Conversation

@A4-Tacks
Copy link
Member

@A4-Tacks A4-Tacks commented Oct 28, 2025

This assist overlaps with the postfix completion .format,
difference is that this assist only converts one curly, and all other curls will be escaped

Example

fn foo() {
    let n = 2;
    let s = "n: {n$0}";
}

->

fn foo() {
    let n = 2;
    let s = format!("n: {n}");
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 28, 2025
Example
---
```rust
fn foo() {
    let n = 2;
    let s = "n: {n$0}";
}
```
->
```rust
fn foo() {
    let n = 2;
    let s = format!("n: {n}");
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants