mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +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
|
// 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")
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue