Skip to content

Documentation for implicit_hasher is not very helpful #3475

Closed
@dpc

Description

@dpc

It is not clear how exactly to convert HashSet<Foo> into a form that would be " generalization over different hashers", and the fact that if you go to https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html you see:

pub struct HashMap<K, V, S = RandomState> { /* fields omitted */ }

is not helping. "Where is this Hasher thing?"

It would be great if https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher could show the wrong code and then the right one, to make it clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentationgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions