chore(sqlite): Use repeat_n(…, n) instead of repeat(…).take(n).

Thanks Clippy!
This commit is contained in:
Ivan Enderlin
2025-01-31 11:40:34 +01:00
committed by Damir Jelić
parent 29862fc9bd
commit 5049d1a3b6

View File

@@ -378,7 +378,7 @@ impl SqliteKeyValueStoreAsyncConnExt for SqliteAsyncConn {
pub(crate) fn repeat_vars(count: usize) -> impl fmt::Display {
assert_ne!(count, 0, "Can't generate zero repeated vars");
iter::repeat("?").take(count).format(",")
iter::repeat_n("?", count).format(",")
}
/// Convert the given `SystemTime` to a timestamp, as the number of seconds