fix clippy

This commit is contained in:
Dull Bananas 2024-11-17 14:40:27 -07:00
parent ffe21da2be
commit 2aead25bc6
3 changed files with 4 additions and 1 deletions

View file

@ -37,6 +37,7 @@ fn migrations() -> diesel_migrations::EmbeddedMigrations {
// Avoid recompiling when migrations are changed // Avoid recompiling when migrations are changed
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
#[expect(clippy::expect_used)]
fn migrations() -> diesel_migrations::FileBasedMigrations { fn migrations() -> diesel_migrations::FileBasedMigrations {
diesel_migrations::FileBasedMigrations::find_migrations_directory() diesel_migrations::FileBasedMigrations::find_migrations_directory()
.expect("failed to get migration source") .expect("failed to get migration source")

View file

@ -1,3 +1,4 @@
#![expect(clippy::expect_used)]
use lemmy_utils::settings::SETTINGS; use lemmy_utils::settings::SETTINGS;
use std::{ use std::{
borrow::Cow, borrow::Cow,

View file

@ -230,7 +230,8 @@ pub async fn start_lemmy_server(args: CmdArgs) -> LemmyResult<()> {
if !args.disable_scheduled_tasks { if !args.disable_scheduled_tasks {
// Schedules various cleanup tasks for the DB // 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 { let server = if !args.disable_http_server {