Skip to content

fix: improve indent for insert_use e.g complete import#22264

Open
A4-Tacks wants to merge 2 commits intorust-lang:masterfrom
A4-Tacks:insertuse-indent
Open

fix: improve indent for insert_use e.g complete import#22264
A4-Tacks wants to merge 2 commits intorust-lang:masterfrom
A4-Tacks:insertuse-indent

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

@A4-Tacks A4-Tacks commented May 3, 2026

Example

mod tests {
    $0use xxx;
}

Before this PR

mod tests {
    use foo::bar;
use xxx;
}

After this PR

mod tests {
    use foo::bar;
    use xxx;
}

Example
---
```rust
mod tests {
    $0use xxx;
}
``

**Before this PR**

```rust
mod tests {
    use foo::bar;
use xxx;
}
```

**After this PR**

```rust
mod tests {
    use foo::bar;
    use xxx;
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 3, 2026
@A4-Tacks A4-Tacks changed the title fix: improve indent for insert_use fix: improve indent for insert_use e.g complete import May 3, 2026
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