Replace deprecated tempdir dependency with tempfile (#11588)
`Tempdir` is deprecated, but the functionality has been merged into another crate: `tempfile`. This commit removes all `tempdir` dependencies and replaces them with `tempfile` and the equivalent bindings. Fixes #11560
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::path::PathBuf;
|
||||
use tempdir::TempDir;
|
||||
use tempfile::TempDir;
|
||||
|
||||
use parity_runtime::{Runtime, TaskExecutor};
|
||||
|
||||
@@ -62,7 +62,7 @@ pub struct GuardedAuthCodes {
|
||||
|
||||
impl Default for GuardedAuthCodes {
|
||||
fn default() -> Self {
|
||||
let tempdir = TempDir::new("").unwrap();
|
||||
let tempdir = TempDir::new().unwrap();
|
||||
let path = tempdir.path().join("file");
|
||||
|
||||
GuardedAuthCodes {
|
||||
|
||||
Reference in New Issue
Block a user