Skip to content

Commit 133d2a2

Browse files
Replace remaining use of deprecated tempdir with tempfile
1 parent 0427ee2 commit 133d2a2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ smallvec = "1.6.1"
5555
strum = "0.25"
5656
syn = "2.0.15"
5757
tar = "0.4.38"
58-
tempdir = "0.3.7"
5958
tempfile = "3.1.0"
6059
unicase = "2.6.0"
6160
url = "2.1"

crates/duckdb/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ regex = { workspace = true }
7171
uuid = { workspace = true, features = ["v4"] }
7272
unicase = { workspace = true }
7373
rand = { workspace = true }
74-
tempdir = { workspace = true }
7574
polars-core = { workspace = true }
7675
pretty_assertions = { workspace = true }
7776
# criterion = "0.3"

crates/duckdb/src/r2d2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ mod test {
130130
use crate::types::Value;
131131
use std::{sync::mpsc, thread};
132132

133-
use tempdir::TempDir;
133+
use tempfile::TempDir;
134134

135135
#[test]
136136
fn test_basic() -> Result<()> {
@@ -210,7 +210,7 @@ mod test {
210210
#[test]
211211
fn test_error_handling() -> Result<()> {
212212
//! We specify a directory as a database. This is bound to fail.
213-
let dir = TempDir::new("r2d2-duckdb").expect("Could not create temporary directory");
213+
let dir = TempDir::with_prefix("r2d2-duckdb").expect("Could not create temporary directory");
214214
let dirpath = dir.path().to_str().unwrap();
215215
assert!(DuckdbConnectionManager::file(dirpath).is_err());
216216
Ok(())

0 commit comments

Comments
 (0)