refactor: avoid redundant string copying

pull/24376/head
Dom Dwyer 2022-11-02 13:38:22 +01:00
parent 46c921940a
commit 8e14b831a6
1 changed files with 2 additions and 2 deletions

View File

@ -382,8 +382,8 @@ pub mod test_utils {
.enumerate()
.map(|(idx, (name, data))| {
let idx = idx as i64;
let name_mapping = (name.to_string(), data);
let id_mapping = (name.to_string(), TableId::new(idx));
let name_mapping = (name.clone(), data);
let id_mapping = (name, TableId::new(idx));
(name_mapping, id_mapping)
})