Skip to content

Commit f0e5648

Browse files
authored
fix(deps): bump to [email protected] (#409)
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 0b91d06 commit f0e5648

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

async-openai/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async-openai-macros = { path = "../async-openai-macros", version = "0.1.0" }
3131
backoff = { version = "0.4.0", features = ["tokio"] }
3232
base64 = "0.22.1"
3333
futures = "0.3.31"
34-
rand = "0.8.5"
34+
rand = "0.9.0"
3535
reqwest = { version = "0.12.12", features = [
3636
"json",
3737
"stream",

async-openai/src/download.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::{Path, PathBuf};
22

33
use base64::{engine::general_purpose, Engine as _};
4-
use rand::{distributions::Alphanumeric, Rng};
4+
use rand::{distr::Alphanumeric, Rng};
55
use reqwest::Url;
66

77
use crate::error::OpenAIError;
@@ -57,7 +57,7 @@ pub(crate) async fn download_url<P: AsRef<Path>>(
5757
}
5858

5959
pub(crate) async fn save_b64<P: AsRef<Path>>(b64: &str, dir: P) -> Result<PathBuf, OpenAIError> {
60-
let filename: String = rand::thread_rng()
60+
let filename: String = rand::rng()
6161
.sample_iter(&Alphanumeric)
6262
.take(10)
6363
.map(char::from)

0 commit comments

Comments
 (0)