From 5049d1a3b62afeecfa0a3f89dd29aa79b6b60dfd Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 31 Jan 2025 11:40:34 +0100 Subject: [PATCH] =?UTF-8?q?chore(sqlite):=20Use=20`repeat=5Fn(=E2=80=A6,?= =?UTF-8?q?=20n)`=20instead=20of=20`repeat(=E2=80=A6).take(n)`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Clippy! --- crates/matrix-sdk-sqlite/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-sqlite/src/utils.rs b/crates/matrix-sdk-sqlite/src/utils.rs index 28ba52167..e12c70ea4 100644 --- a/crates/matrix-sdk-sqlite/src/utils.rs +++ b/crates/matrix-sdk-sqlite/src/utils.rs @@ -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