mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Use arg name instead of repeating it in format!()
This commit is contained in:
parent
194d251004
commit
cac507b979
1 changed files with 3 additions and 3 deletions
|
@ -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(())
|
||||||
|
|
Loading…
Reference in a new issue