Skip to content

Entry::and_modify should use FnOnce #49581

Closed
@Zoxc

Description

@Zoxc

This should change to use FnOnce instead of FnMut before it lands on stable.
https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify

cc @rust-lang/libs

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions