refactor: avoid redundant string copying
parent
46c921940a
commit
8e14b831a6
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue