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!( write!(
self.sql, self.sql,
concat!( concat!(
"(select min(id) > {} from revlog where cid = c.id)", "(select min(id) > {cutoff} from revlog where cid = c.id)",
"and c.id in (select cid from revlog where id > {})" "and c.id in (select cid from revlog where id > {cutoff})"
), ),
cutoff, cutoff, cutoff = cutoff,
) )
.unwrap(); .unwrap();
Ok(()) Ok(())