Skip to content

Suggest '.values_mut()' if HashMap mutably borrowed #709

Closed
@frewsxcv

Description

@frewsxcv

If one uses:

for (_, layer) in &mut self.layers {
    ...
}

clippy currently suggests to use HashMap::values. Since there is no HashMap::values_mut, there's no way to replicate this same functionality with a method, so it shouldn't be suggested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions