fixed cloned

This commit is contained in:
Anatoly Yakovenko 2018-05-30 10:04:11 -07:00 committed by Greg Fitzgerald
parent 2888e45fea
commit 02c5b0343b
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ mod tests {
assert_eq!(crdt.table[&d.id].version, 2);
}
fn sorted(ls: &Vec<ReplicatedData>) -> Vec<ReplicatedData> {
let mut copy: Vec<_> = ls.iter().map(|x| x.clone()).collect();
let mut copy: Vec<_> = ls.iter().cloned().collect();
copy.sort_by(|x, y| x.id.cmp(&y.id));
copy
}