mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 14:21:19 +00:00
fix clippy
This commit is contained in:
parent
ffe21da2be
commit
2aead25bc6
3 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![expect(clippy::expect_used)]
|
||||
use lemmy_utils::settings::SETTINGS;
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue