From cac507b979829f0d94078057f8edd3a669ff0115 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Mon, 19 Apr 2021 08:58:33 +0200 Subject: [PATCH] Use arg name instead of repeating it in format!() --- rslib/src/search/sqlwriter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rslib/src/search/sqlwriter.rs b/rslib/src/search/sqlwriter.rs index 46fd9aace..0d73b59bf 100644 --- a/rslib/src/search/sqlwriter.rs +++ b/rslib/src/search/sqlwriter.rs @@ -501,10 +501,10 @@ impl SqlWriter<'_> { write!( self.sql, concat!( - "(select min(id) > {} from revlog where cid = c.id)", - "and c.id in (select cid from revlog where id > {})" + "(select min(id) > {cutoff} from revlog where cid = c.id)", + "and c.id in (select cid from revlog where id > {cutoff})" ), - cutoff, cutoff, + cutoff = cutoff, ) .unwrap(); Ok(())