We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
map(|&x| x)
Option and IteratorExt both have .cloned() which is sugar for this operation.
.cloned()
AKA
.map(|x| *x)
.map(|x| x.clone())
.map(|x| (*x).clone())