From a28ddc0da43ef01774c1816a2be5786ae0c52953 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 19 Mar 2022 04:13:26 +0100 Subject: select(): Change `column_name` extraction to `to_owned()` I had used `to_string()` before because the in-progress code wouldn't let me use `to_owned()`. Now that I've changed things around, this is possible. --- src/select.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/select.rs b/src/select.rs index b1319e5..d3dc9f0 100644 --- a/src/select.rs +++ b/src/select.rs @@ -50,7 +50,7 @@ pub fn select( let mut data = yaml_rust::yaml::Hash::new(); for (i, column) in column_names.iter().enumerate() { - let column_name = column.to_string(); + let column_name = column.to_owned(); let column_value: Yaml = row.get(i)?; data.insert( -- cgit v1.2.3