Use arg name instead of repeating it in format!()

This commit is contained in:
RumovZ 2021-04-19 08:58:33 +02:00
parent 194d251004
commit cac507b979

View File

@ -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(())