Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to edition 2024 #5446

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions crates/api/src/local_user/get_captcha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -29,7 +29,7 @@ pub async fn get_captcha(context: Data<LemmyContext>) -> LemmyResult<HttpRespons
return Ok(res.json(Json(GetCaptchaResponse { ok: None })));
}

let captcha = gen(match local_site.captcha_difficulty.as_str() {
let captcha = generate(match local_site.captcha_difficulty.as_str() {
"easy" => Difficulty::Easy,
"hard" => Difficulty::Hard,
_ => Difficulty::Medium,
Expand Down