Skip to content

Remove unnecessary type annotation of binding to hash map value #3

@yousefmoazzam

Description

@yousefmoazzam

The type can be inferred by the compiler due to how the hash map is being used later in the function, so this explicit type annotation is unnecessary:

let mut map: HashMap<String, i8> = HashMap::new();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions