mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 15:51:20 +00:00
clippy
This commit is contained in:
parent
ebcde207ac
commit
1e1ab68b29
1 changed files with 2 additions and 1 deletions
|
@ -64,6 +64,7 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
#[expect(clippy::indexing_slicing)]
|
||||||
async fn test_allowlist_insert_and_clear() -> Result<(), Error> {
|
async fn test_allowlist_insert_and_clear() -> Result<(), Error> {
|
||||||
let pool = &build_db_pool_for_tests();
|
let pool = &build_db_pool_for_tests();
|
||||||
let pool = &mut pool.into();
|
let pool = &mut pool.into();
|
||||||
|
@ -84,7 +85,7 @@ mod tests {
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
for f in &forms {
|
for f in &forms {
|
||||||
AdminAllowInstance::allow(pool, &f).await?;
|
AdminAllowInstance::allow(pool, f).await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let allows = Instance::allowlist(pool).await?;
|
let allows = Instance::allowlist(pool).await?;
|
||||||
|
|
Loading…
Reference in a new issue