update to latest rand version

This commit is contained in:
2025-01-28 21:32:41 +01:00
parent a5ea067515
commit f6351afa93
+2 -2
View File
@@ -14,7 +14,7 @@ use mailparse::{
ParsedContentDisposition, ParsedContentType,
};
use mediatype::{names::*, MediaType, MediaTypeBuf, Name};
use rand::{distributions::Alphanumeric, thread_rng, Rng as _};
use rand::{distr::Alphanumeric, rng, Rng as _};
use std::borrow::Cow;
use std::boxed::Box;
use std::ops::Deref;
@@ -195,7 +195,7 @@ pub trait Mail<'a, T: Header<'a> + 'a>: HeaderMap<'a, T> {
pub fn generate_boundary() -> String {
thread_rng()
rng()
.sample_iter(&Alphanumeric)
.take(68)
.map(char::from)