Skip to content

Feature request: Extract arbitrary exprs in format string into named. #13180

@crlf0710

Description

@crlf0710

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());.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions