Get workspace compiling with new event emitters

This commit is contained in:
Mikayla
2023-11-08 19:29:00 -08:00
parent 26fc36ee0e
commit a97c8bf58f
24 changed files with 224 additions and 319 deletions
+2 -3
View File
@@ -17,6 +17,7 @@ use gpui::{
};
use postage::watch;
use project::Project;
use room::Event;
use settings::Settings;
use std::sync::Arc;
@@ -85,9 +86,7 @@ pub struct ActiveCall {
_subscriptions: Vec<client::Subscription>,
}
impl EventEmitter for ActiveCall {
type Event = room::Event;
}
impl EventEmitter<Event> for ActiveCall {}
impl ActiveCall {
fn new(client: Arc<Client>, user_store: Model<UserStore>, cx: &mut ModelContext<Self>) -> Self {
+1 -3
View File
@@ -79,9 +79,7 @@ pub struct Room {
maintain_connection: Option<Task<Option<()>>>,
}
impl EventEmitter for Room {
type Event = Event;
}
impl EventEmitter<Event> for Room {}
impl Room {
pub fn channel_id(&self) -> Option<u64> {