diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 17a38e9cfb..73f11f09b0 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -62,7 +62,6 @@ use std::{ time::Instant, }; use terminal::{Terminal, TerminalBuilder}; -use thiserror::Error; use util::{defer, post_inc, ResultExt, TryFutureExt as _}; pub use fs::*; @@ -123,18 +122,6 @@ pub struct Project { _maintain_buffer_languages: Task<()>, } -#[derive(Error, Debug)] -pub enum JoinProjectError { - #[error("host declined join request")] - HostDeclined, - #[error("host closed the project")] - HostClosedProject, - #[error("host went offline")] - HostWentOffline, - #[error("{0}")] - Other(#[from] anyhow::Error), -} - enum OpenBuffer { Strong(ModelHandle), Weak(WeakModelHandle), @@ -457,7 +444,7 @@ impl Project { languages: Arc, fs: Arc, mut cx: AsyncAppContext, - ) -> Result, JoinProjectError> { + ) -> Result> { client.authenticate_and_connect(true, &cx).await?; let subscription = client.subscribe_to_entity(remote_id);