From fec8d0969388335418f11c7bfe59fcd656d81243 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 3 Jul 2020 12:46:40 +0200 Subject: [PATCH] tidy up indentation part 3 --- server/service/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/service/src/main.rs b/server/service/src/main.rs index 42243e1..9bbfbe6 100644 --- a/server/service/src/main.rs +++ b/server/service/src/main.rs @@ -251,7 +251,6 @@ fn torrent_search( // `sort_key` and `sort_dir` are already sanitized and should not be escaped: let stmt_str = format!("select * from torrents where name like '%' || ?1 || '%' order by {} {} limit ?2, ?3", sort_key, sort_dir); let mut stmt = conn.prepare(&stmt_str)?; - let torrent_iter = stmt.query_map( params![ query.replace(" ", "%"), @@ -269,7 +268,7 @@ fn torrent_search( completed: row.get(6)?, scraped_date: row.get(7)?, }) - }, + }, )?; let mut torrents = Vec::new();