update rust deps

This commit is contained in:
2025-11-10 10:51:57 +01:00
parent 737c44da12
commit 578dfd8998
22 changed files with 1672 additions and 1473 deletions
+4 -2
View File
@@ -4,7 +4,7 @@ use anyhow::{anyhow, bail, Context, Result};
use chrono::{Duration as ChronoDuration, Utc};
use clap::{Parser, Subcommand, ValueEnum};
use diesel::{dsl::exists, prelude::*, select};
use rand::{rngs::OsRng, RngCore};
use rand::{rngs::OsRng, TryRngCore};
use reqwest::{Client, Method, StatusCode};
use sha2::{Digest, Sha256};
use uuid::Uuid;
@@ -323,7 +323,9 @@ fn create_magic_token(
fn generate_random_token() -> String {
let mut bytes = [0u8; 32];
OsRng.fill_bytes(&mut bytes);
OsRng
.try_fill_bytes(&mut bytes)
.expect("failed to read random bytes");
hex::encode(bytes)
}