Skip to content

move not needed? #286

@rvignolo

Description

@rvignolo

I believe that there is no need to use move here:

let handle1 = thread::spawn(move || slice1.iter().sum::<i32>());
let handle2 = thread::spawn(move || slice2.iter().sum::<i32>());

What do you think?

Thank you for the tutorial!

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