aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-03-19 04:13:26 +0100
committerTeddy Wing2022-03-19 04:14:00 +0100
commita28ddc0da43ef01774c1816a2be5786ae0c52953 (patch)
treedd898c78cce42b4187aa3384287bacba542afbe8
parent1b467a73e02c89b4b6b63957d6f68c620c6fcb44 (diff)
downloadyaqlite-a28ddc0da43ef01774c1816a2be5786ae0c52953.tar.bz2
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.
-rw-r--r--src/select.rs2
1 files changed, 1 insertions, 1 deletions
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(