Skip to content

Utilize if..let instead of single match branch #31820

Closed
@frewsxcv

Description

@frewsxcv

match cx.lltypes().borrow().get(&t) {
Some(&llty) => return llty,
None => ()
}

More info: https://doc.rust-lang.org/book/if-let.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions