mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-25 19:29:49 +00:00
Remove unused JoinProjectError
This commit is contained in:
parent
b0336cd27e
commit
b5fb8e6b8b
1 changed files with 1 additions and 14 deletions
|
@ -62,7 +62,6 @@ use std::{
|
||||||
time::Instant,
|
time::Instant,
|
||||||
};
|
};
|
||||||
use terminal::{Terminal, TerminalBuilder};
|
use terminal::{Terminal, TerminalBuilder};
|
||||||
use thiserror::Error;
|
|
||||||
use util::{defer, post_inc, ResultExt, TryFutureExt as _};
|
use util::{defer, post_inc, ResultExt, TryFutureExt as _};
|
||||||
|
|
||||||
pub use fs::*;
|
pub use fs::*;
|
||||||
|
@ -123,18 +122,6 @@ pub struct Project {
|
||||||
_maintain_buffer_languages: Task<()>,
|
_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 {
|
enum OpenBuffer {
|
||||||
Strong(ModelHandle<Buffer>),
|
Strong(ModelHandle<Buffer>),
|
||||||
Weak(WeakModelHandle<Buffer>),
|
Weak(WeakModelHandle<Buffer>),
|
||||||
|
@ -457,7 +444,7 @@ impl Project {
|
||||||
languages: Arc<LanguageRegistry>,
|
languages: Arc<LanguageRegistry>,
|
||||||
fs: Arc<dyn Fs>,
|
fs: Arc<dyn Fs>,
|
||||||
mut cx: AsyncAppContext,
|
mut cx: AsyncAppContext,
|
||||||
) -> Result<ModelHandle<Self>, JoinProjectError> {
|
) -> Result<ModelHandle<Self>> {
|
||||||
client.authenticate_and_connect(true, &cx).await?;
|
client.authenticate_and_connect(true, &cx).await?;
|
||||||
|
|
||||||
let subscription = client.subscribe_to_entity(remote_id);
|
let subscription = client.subscribe_to_entity(remote_id);
|
||||||
|
|
Loading…
Reference in a new issue