update versions

This commit is contained in:
2025-02-21 15:11:31 +01:00
parent ca427153d9
commit 48b8ff7bd7
9 changed files with 1019 additions and 638 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "terminwahl_back"
version = "0.1.0"
edition = "2021"
edition = "2024"
default-run = "terminwahl_back"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+2 -2
View File
@@ -7,7 +7,7 @@ use lettre::{
message::header::ContentType, AsyncSmtpTransport, AsyncTransport, Message, Tokio1Executor,
};
use log::debug;
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use rand::{distr::Alphanumeric, rng, Rng};
use serde::Serialize;
use serde_json::json;
use terminwahl_typen::{AppointmentSlot, Nutzer, PlannedAppointment, RequestState, Teacher};
@@ -48,7 +48,7 @@ pub async fn save_appointments_json(
.await
.map_err(error::ErrorInternalServerError)?;
debug!("Saving appointments");
let validation_key: String = thread_rng()
let validation_key: String = rng()
.sample_iter(&Alphanumeric)
.take(30)
.map(char::from)