Skip to content

Combining let statements into a pattern #10651

Open
@Kixiron

Description

@Kixiron

A nice little code action would be combining multiple let statements into a single one, like this

// Original code
let mut body = builder.translate(theta.body());
let mut outputs = BTreeMap::new();

// Code action turns it into this
let (mut body, mut outputs) = (builder.translate(theta.body()), BTreeMap::new());

The inverse would also be cool, splitting patterns into multiple bindings

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-assistsC-featureCategory: feature requestS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions