mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-06 06:53:32 -04:00
chore(sqlite): Use repeat_n(…, n) instead of repeat(…).take(n).
Thanks Clippy!
This commit is contained in:
committed by
Damir Jelić
parent
29862fc9bd
commit
5049d1a3b6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user