mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-12 19:11:23 +03:00
Fix warning
This commit is contained in:
parent
20c1a1e310
commit
3a6fb0a8fe
@ -7,7 +7,6 @@ use std::{
|
|||||||
os::unix::fs::MetadataExt,
|
os::unix::fs::MetadataExt,
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
pin::Pin,
|
pin::Pin,
|
||||||
sync::Arc,
|
|
||||||
time::{Duration, SystemTime},
|
time::{Duration, SystemTime},
|
||||||
};
|
};
|
||||||
use text::Rope;
|
use text::Rope;
|
||||||
@ -269,7 +268,7 @@ pub struct FakeFs {
|
|||||||
|
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
impl FakeFs {
|
impl FakeFs {
|
||||||
pub fn new(executor: std::sync::Arc<gpui::executor::Background>) -> Arc<Self> {
|
pub fn new(executor: std::sync::Arc<gpui::executor::Background>) -> std::sync::Arc<Self> {
|
||||||
let (events_tx, _) = postage::broadcast::channel(2048);
|
let (events_tx, _) = postage::broadcast::channel(2048);
|
||||||
let mut entries = std::collections::BTreeMap::new();
|
let mut entries = std::collections::BTreeMap::new();
|
||||||
entries.insert(
|
entries.insert(
|
||||||
@ -284,7 +283,7 @@ impl FakeFs {
|
|||||||
content: None,
|
content: None,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
Arc::new(Self {
|
std::sync::Arc::new(Self {
|
||||||
executor,
|
executor,
|
||||||
state: futures::lock::Mutex::new(FakeFsState {
|
state: futures::lock::Mutex::new(FakeFsState {
|
||||||
entries,
|
entries,
|
||||||
|
Loading…
Reference in New Issue
Block a user