Commit 73a11646 authored by Mike Cronce's avatar Mike Cronce

src/main.rs: main(): Use queries.into_iter() instead of queries.iter()

parent e25fb23d
......@@ -79,8 +79,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
},
Ok(v) => v
};
for query in queries.iter() {
match client.query(query).await {
// queries is a Vec<WriteQuery>
for query in queries.into_iter() {
match client.query(&query).await {
Ok(_) => (),
Err(e) => println!("Query for character {} fail: {:?}", id, e)
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment