Start removing the Send impl for App
Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
ea7fdef417
commit
57ffa8201e
38 changed files with 506 additions and 932 deletions
|
@ -288,7 +288,7 @@ impl Fs for RealFs {
|
|||
pub struct FakeFs {
|
||||
// Use an unfair lock to ensure tests are deterministic.
|
||||
state: Mutex<FakeFsState>,
|
||||
executor: gpui2::Executor,
|
||||
executor: gpui2::BackgroundExecutor,
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
|
@ -434,7 +434,7 @@ lazy_static::lazy_static! {
|
|||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
impl FakeFs {
|
||||
pub fn new(executor: gpui2::Executor) -> Arc<Self> {
|
||||
pub fn new(executor: gpui2::BackgroundExecutor) -> Arc<Self> {
|
||||
Arc::new(Self {
|
||||
executor,
|
||||
state: Mutex::new(FakeFsState {
|
||||
|
@ -1222,11 +1222,11 @@ pub fn copy_recursive<'a>(
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use gpui2::Executor;
|
||||
use gpui2::BackgroundExecutor;
|
||||
use serde_json::json;
|
||||
|
||||
#[gpui2::test]
|
||||
async fn test_fake_fs(executor: Executor) {
|
||||
async fn test_fake_fs(executor: BackgroundExecutor) {
|
||||
let fs = FakeFs::new(executor.clone());
|
||||
fs.insert_tree(
|
||||
"/root",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue