rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Add ide-assist: inline as closure

Open A4-Tacks opened this issue 8 months ago • 2 comments

fn foo() { println!("Hello, World!"); }
fn main() {
    let _ = foo$0;
}

->

fn foo() { println!("Hello, World!"); }
fn main() {
    let _ = || { println!("Hello, World!"); };
}

A4-Tacks avatar Jul 02 '25 14:07 A4-Tacks

r?

A4-Tacks avatar Aug 07 '25 04:08 A4-Tacks

Error: Parsing assign command in comment failed: ...'' | error: specify user to assign to at >| ''...

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

rustbot avatar Aug 07 '25 04:08 rustbot