From 1e1ab68b29a1540834a4b34382f2c21bb87d0088 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 21 Nov 2024 12:44:15 +0100 Subject: [PATCH] clippy --- crates/db_schema/src/impls/federation_allowlist.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/db_schema/src/impls/federation_allowlist.rs b/crates/db_schema/src/impls/federation_allowlist.rs index 1e2139df1..e2852f166 100644 --- a/crates/db_schema/src/impls/federation_allowlist.rs +++ b/crates/db_schema/src/impls/federation_allowlist.rs @@ -64,6 +64,7 @@ mod tests { #[tokio::test] #[serial] + #[expect(clippy::indexing_slicing)] async fn test_allowlist_insert_and_clear() -> Result<(), Error> { let pool = &build_db_pool_for_tests(); let pool = &mut pool.into(); @@ -84,7 +85,7 @@ mod tests { .collect(); for f in &forms { - AdminAllowInstance::allow(pool, &f).await?; + AdminAllowInstance::allow(pool, f).await?; } let allows = Instance::allowlist(pool).await?;