From f0edb93df2e282146e86174a5b129039cc6fce0a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 30 Dec 2018 23:33:04 +0300 Subject: :arrow_up: tempdir --- crates/ra_lsp_server/Cargo.toml | 2 +- crates/ra_lsp_server/tests/heavy_tests/support.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index 646df2497..b1a4cdaa1 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml @@ -35,6 +35,6 @@ gen_lsp_server = { path = "../gen_lsp_server" } ra_vfs = { path = "../ra_vfs" } [dev-dependencies] -tempdir = "0.3.7" +tempfile = "3" test_utils = { path = "../test_utils" } tools = { path = "../tools" } diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs index c14d287ca..0f7152140 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs @@ -16,7 +16,7 @@ use languageserver_types::{ }; use serde::Serialize; use serde_json::{to_string_pretty, Value}; -use tempdir::TempDir; +use tempfile::TempDir; use thread_worker::{WorkerHandle, Worker}; use test_utils::{parse_fixture, find_mismatch}; @@ -28,7 +28,7 @@ pub fn project(fixture: &str) -> Server { static INIT: Once = Once::new(); INIT.call_once(|| Logger::with_env_or_str(crate::LOG).start().unwrap()); - let tmp_dir = TempDir::new("test-project").unwrap(); + let tmp_dir = TempDir::new().unwrap(); let mut paths = vec![]; for entry in parse_fixture(fixture) { -- cgit v1.2.3