diff options
author | Teddy Wing | 2022-03-19 04:13:26 +0100 |
---|---|---|
committer | Teddy Wing | 2022-03-19 04:14:00 +0100 |
commit | a28ddc0da43ef01774c1816a2be5786ae0c52953 (patch) | |
tree | dd898c78cce42b4187aa3384287bacba542afbe8 | |
parent | 1b467a73e02c89b4b6b63957d6f68c620c6fcb44 (diff) | |
download | yaqlite-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.rs | 2 |
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( |