Rename `handle_message` to `on_message`

Antonio Scandurra created

Change summary

zed/src/rpc.rs       | 4 ++--
zed/src/workspace.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

zed/src/rpc.rs 🔗

@@ -32,14 +32,14 @@ where
 }
 
 pub trait PeerExt {
-    fn handle_messages<H, M>(&self, handler: H, cx: &mut gpui::MutableAppContext)
+    fn on_message<H, M>(&self, handler: H, cx: &mut gpui::MutableAppContext)
     where
         H: 'static + for<'a> MessageHandler<'a, M>,
         M: proto::EnvelopedMessage;
 }
 
 impl PeerExt for Arc<Peer> {
-    fn handle_messages<H, M>(&self, handler: H, cx: &mut gpui::MutableAppContext)
+    fn on_message<H, M>(&self, handler: H, cx: &mut gpui::MutableAppContext)
     where
         H: 'static + for<'a> MessageHandler<'a, M>,
         M: proto::EnvelopedMessage,

zed/src/workspace.rs 🔗

@@ -46,7 +46,7 @@ pub fn init(cx: &mut MutableAppContext, rpc: Arc<Peer>) {
     ]);
     pane::init(cx);
 
-    rpc.handle_messages(handle_open_buffer, cx);
+    rpc.on_message(handle_open_buffer, cx);
 }
 
 pub struct OpenParams {