From 2af37e27499a308a4a0e749eb23b2ea965822569 Mon Sep 17 00:00:00 2001 From: Koichi Akabe Date: Thu, 30 May 2024 09:34:35 +0900 Subject: [PATCH] Remove unnecessary clone() --- vibrato/src/dictionary/character.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vibrato/src/dictionary/character.rs b/vibrato/src/dictionary/character.rs index 3216a67..8258ceb 100644 --- a/vibrato/src/dictionary/character.rs +++ b/vibrato/src/dictionary/character.rs @@ -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 {