Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

de-lint

Conrad Irwinabdf302367d1
diff --git a/crates/channel/src/channel_store.rs b/crates/channel/src/channel_store.rs
index 62363bf91a2..1883a7e06de 100644
--- a/crates/channel/src/channel_store.rs
+++ b/crates/channel/src/channel_store.rs
@@ -88,15 +88,6 @@ impl Channel {
slug.trim_matches(|c| c == '-').to_string()
}
-
- pub fn channel_buffer_capability(&self) -> Capability {
- todo!() // go ask the channel store
- // if self.role == proto::ChannelRole::Member || self.role == proto::ChannelRole::Admin {
- // Capability::ReadWrite
- // } else {
- // Capability::ReadOnly
- // }
- }
}
pub struct ChannelMembership {
diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs
index 6f24c9e8cfb..aee9e19f61a 100644
--- a/crates/collab/src/rpc.rs
+++ b/crates/collab/src/rpc.rs
@@ -2451,7 +2451,7 @@ async fn remove_channel_member(
/// Toggle the channel between public and private.
/// Care is taken to maintain the invariant that public channels only descend from public channels,
-/// (though members-only channels can appear at any point in the heirarchy).
+/// (though members-only channels can appear at any point in the hierarchy).
async fn set_channel_visibility(
request: proto::SetChannelVisibility,
response: Response<proto::SetChannelVisibility>,
@@ -2604,7 +2604,6 @@ async fn move_channel(
channels,
..Default::default()
};
- dbg!(&member, &update);
for connection_id in connection_pool.user_connection_ids(member.user_id) {
session.peer.send(connection_id, update.clone())?;