rust/hedgewars-server/src/server/database.rs
changeset 15795 40929af15167
parent 15532 f1205f33bf5b
child 15833 3511bacbd763
--- a/rust/hedgewars-server/src/server/database.rs	Thu Jun 17 19:32:26 2021 +0200
+++ b/rust/hedgewars-server/src/server/database.rs	Sat Jun 19 17:48:10 2021 +0300
@@ -105,7 +105,7 @@
 
     pub fn store_stats(&mut self, stats: &ServerStatistics) -> Result<(), Error> {
         if let Some(pool) = &self.pool {
-            for mut stmt in pool.prepare(STORE_STATS_QUERY).into_iter() {
+            for mut stmt in pool.prepare(STORE_STATS_QUERY) {
                 stmt.execute(params! {
                     "players" => stats.players,
                     "rooms" => stats.rooms,