diff --git a/crates/db_schema/src/schema_setup.rs b/crates/db_schema/src/schema_setup.rs index 054940cf2..2b6bc4a76 100644 --- a/crates/db_schema/src/schema_setup.rs +++ b/crates/db_schema/src/schema_setup.rs @@ -37,6 +37,7 @@ fn migrations() -> diesel_migrations::EmbeddedMigrations { // Avoid recompiling when migrations are changed #[cfg(debug_assertions)] +#[expect(clippy::expect_used)] fn migrations() -> diesel_migrations::FileBasedMigrations { diesel_migrations::FileBasedMigrations::find_migrations_directory() .expect("failed to get migration source") diff --git a/crates/db_schema/src/schema_setup/diff_check.rs b/crates/db_schema/src/schema_setup/diff_check.rs index da5ac4e1b..ea9def7ef 100644 --- a/crates/db_schema/src/schema_setup/diff_check.rs +++ b/crates/db_schema/src/schema_setup/diff_check.rs @@ -1,3 +1,4 @@ +#![expect(clippy::expect_used)] use lemmy_utils::settings::SETTINGS; use std::{ borrow::Cow, diff --git a/src/lib.rs b/src/lib.rs index 55b5830c1..2e04f5db8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -230,7 +230,8 @@ pub async fn start_lemmy_server(args: CmdArgs) -> LemmyResult<()> { if !args.disable_scheduled_tasks { // Schedules various cleanup tasks for the DB - let _scheduled_tasks = tokio::task::spawn(scheduled_tasks::setup(context.clone())); + let _scheduled_tasks = + tokio::task::spawn(scheduled_tasks::setup(request_data.reset_request_count())); } let server = if !args.disable_http_server {