rust-analyzer/crates/ide-assists
A4-Tacks 3964af7bf6
Add applicable in closure for convert_to_guarded_return
Example
---
```rust
fn main() {
    let _f = || {
        bar();
        if$0 true {
            foo();

            // comment
            bar();
        }
    }
}
```
->
```rust
fn main() {
    let _f = || {
        bar();
        if false {
            return;
        }
        foo();

        // comment
        bar();
    }
}
```
2025-09-25 22:04:53 +08:00
..
src Add applicable in closure for convert_to_guarded_return 2025-09-25 22:04:53 +08:00
Cargo.toml Don't run doctests 2025-06-23 00:50:22 +03:00