From ce8cc50ae50d68ead523d8a1232a20d828c863b5 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 28 Dec 2023 23:45:30 +0200 Subject: [PATCH] Remove `async_trait` from the only trait that allows it now --- crates/fs/src/repository.rs | 2 -- crates/fs2/src/repository.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/fs/src/repository.rs b/crates/fs/src/repository.rs index 4637a7f75408c74a4d398b8eb60f21d6ba76ab33..cf5c65105c9e9c473967f8adb9f7de04b6d8f567 100644 --- a/crates/fs/src/repository.rs +++ b/crates/fs/src/repository.rs @@ -23,7 +23,6 @@ pub struct Branch { pub unix_timestamp: Option, } -#[async_trait::async_trait] pub trait GitRepository: Send { fn reload_index(&self); fn load_index_text(&self, relative_file_path: &Path) -> Option; @@ -248,7 +247,6 @@ impl FakeGitRepository { } } -#[async_trait::async_trait] impl GitRepository for FakeGitRepository { fn reload_index(&self) {} diff --git a/crates/fs2/src/repository.rs b/crates/fs2/src/repository.rs index 4637a7f75408c74a4d398b8eb60f21d6ba76ab33..cf5c65105c9e9c473967f8adb9f7de04b6d8f567 100644 --- a/crates/fs2/src/repository.rs +++ b/crates/fs2/src/repository.rs @@ -23,7 +23,6 @@ pub struct Branch { pub unix_timestamp: Option, } -#[async_trait::async_trait] pub trait GitRepository: Send { fn reload_index(&self); fn load_index_text(&self, relative_file_path: &Path) -> Option; @@ -248,7 +247,6 @@ impl FakeGitRepository { } } -#[async_trait::async_trait] impl GitRepository for FakeGitRepository { fn reload_index(&self) {}