From 674df0b82cab5a743ba1f3a60c50a0ff95a50d62 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 21 Feb 2025 11:56:04 +0100 Subject: [PATCH] Upgrade to edition 2024 --- Cargo.toml | 2 +- crates/api/src/local_user/get_captcha.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 80d306eb20..a2faaab217 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace.package] version = "1.0.0-alpha.0" -edition = "2021" +edition = "2024" description = "A link aggregator for the fediverse" license = "AGPL-3.0" homepage = "https://join-lemmy.org/" diff --git a/crates/api/src/local_user/get_captcha.rs b/crates/api/src/local_user/get_captcha.rs index a4f603c682..0afb572286 100644 --- a/crates/api/src/local_user/get_captcha.rs +++ b/crates/api/src/local_user/get_captcha.rs @@ -8,7 +8,7 @@ use actix_web::{ HttpResponse, HttpResponseBuilder, }; -use captcha::{gen, Difficulty}; +use captcha::{r#gen as generate, Difficulty}; use lemmy_api_common::{ context::LemmyContext, person::{CaptchaResponse, GetCaptchaResponse}, @@ -29,7 +29,7 @@ pub async fn get_captcha(context: Data) -> LemmyResult Difficulty::Easy, "hard" => Difficulty::Hard, _ => Difficulty::Medium,