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!(
|
||||
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(())
|
||||
|
|
Loading…
Reference in a new issue