From 59f292bc1e5b2d24752c1699f2659a5fc24a057c Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 3 Jul 2020 12:45:53 +0200 Subject: [PATCH] tidy up indentation part 2 --- server/service/src/main.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server/service/src/main.rs b/server/service/src/main.rs index bf312e3..42243e1 100644 --- a/server/service/src/main.rs +++ b/server/service/src/main.rs @@ -253,21 +253,21 @@ fn torrent_search( let mut stmt = conn.prepare(&stmt_str)?; let torrent_iter = stmt.query_map( - params!{ + params![ query.replace(" ", "%"), offset.to_string(), size.to_string(), - }, + ], |row| { Ok(Torrent { - infohash: row.get(0)?, - name: row.get(1)?, - size_bytes: row.get(2)?, - created_unix: row.get(3)?, - seeders: row.get(4)?, - leechers: row.get(5)?, - completed: row.get(6)?, - scraped_date: row.get(7)?, + infohash: row.get(0)?, + name: row.get(1)?, + size_bytes: row.get(2)?, + created_unix: row.get(3)?, + seeders: row.get(4)?, + leechers: row.get(5)?, + completed: row.get(6)?, + scraped_date: row.get(7)?, }) }, )?;