Update Rust to edition 2024

This commit is contained in:
2025-03-28 15:09:21 +01:00
parent c6e53d5790
commit ca6b5d398b
19 changed files with 28 additions and 25 deletions

@ -1,4 +1,4 @@
use base64::{engine::general_purpose, Engine as _};
use base64::{Engine as _, engine::general_purpose};
/// Encode a base64 string
pub fn base64_enc<T: AsRef<[u8]>>(b: T) -> String {

@ -3,4 +3,4 @@ use rand::distr::{Alphanumeric, SampleString};
/// Generate a random string of a given length
pub fn rand_str(len: usize) -> String {
Alphanumeric.sample_string(&mut rand::rng(), len)
}
}