From bc170f139e5d22796274cc9f35328d2c928caeae Mon Sep 17 00:00:00 2001 From: Valentin Bersier Date: Mon, 9 Jan 2023 16:46:12 +0100 Subject: [PATCH] style: remove trailing spaces --- src/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database.rs b/src/database.rs index 2e06e7c..857e9a5 100644 --- a/src/database.rs +++ b/src/database.rs @@ -54,10 +54,10 @@ pub fn indexed_paths(connection: &sqlite::Connection) -> Result> { pub fn duplicate_hashes(connection: &sqlite::Connection, path: &str) -> Result> { let query = format!( - " + " SELECT a.* FROM files a JOIN (SELECT file_identifier, hash, COUNT(*) - FROM files + FROM files GROUP BY hash HAVING count(*) > 1 ) b ON a.hash = b.hash