From 3a6fb0a8fe065502655188522ee08c6f30211fa3 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 18 Feb 2022 12:21:24 +0100 Subject: [PATCH] Fix warning --- crates/project/src/fs.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/project/src/fs.rs b/crates/project/src/fs.rs index 22a1e11ea3..8fbdb3220e 100644 --- a/crates/project/src/fs.rs +++ b/crates/project/src/fs.rs @@ -7,7 +7,6 @@ use std::{ os::unix::fs::MetadataExt, path::{Path, PathBuf}, pin::Pin, - sync::Arc, time::{Duration, SystemTime}, }; use text::Rope; @@ -269,7 +268,7 @@ pub struct FakeFs { #[cfg(any(test, feature = "test-support"))] impl FakeFs { - pub fn new(executor: std::sync::Arc) -> Arc { + pub fn new(executor: std::sync::Arc) -> std::sync::Arc { let (events_tx, _) = postage::broadcast::channel(2048); let mut entries = std::collections::BTreeMap::new(); entries.insert( @@ -284,7 +283,7 @@ impl FakeFs { content: None, }, ); - Arc::new(Self { + std::sync::Arc::new(Self { executor, state: futures::lock::Mutex::new(FakeFsState { entries,