From abdf302367d18d8b6fcf80fc2952311560af9c42 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 25 Jan 2024 23:31:18 -0700 Subject: [PATCH] de-lint --- crates/channel/src/channel_store.rs | 9 --------- crates/collab/src/rpc.rs | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/channel/src/channel_store.rs b/crates/channel/src/channel_store.rs index 62363bf91a..1883a7e06d 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 6f24c9e8cf..aee9e19f61 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, @@ -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())?;