Skip to content

RFC: Cell::with_{mut_,}ref() should use finally #7975

Closed
@bblum

Description

@bblum

currently if the closure passed to with_ref/with_mut_ref fails, the cell will not put back the value that was taken from it. Is this desired? Or should it put it back?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions