Skip to content

Commit

Permalink
Merge pull request #152 from daac-tools/rm-unnecessary-clone
Browse files Browse the repository at this point in the history
Remove unnecessary clone()
  • Loading branch information
vbkaisetsu committed May 30, 2024
2 parents 19991ae + 2af37e2 commit 6b61e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vibrato/src/dictionary/character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ impl CharProperty {
}

let mut categories = vec![String::new(); cate_map.len()];
for (k, &v) in cate_map.iter() {
categories[usize::from_u32(v)] = k.clone();
for (k, v) in cate_map {
categories[usize::from_u32(v)] = k;
}

Ok(Self {
Expand Down

0 comments on commit 6b61e23

Please sign in to comment.