Skip to content

Commit

Permalink
Remove unnecessary clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu committed May 30, 2024
1 parent 19991ae commit 2af37e2
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 2af37e2

Please sign in to comment.