update versions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user