Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove unnecessary `PeerId` parsing code
Antonio Scandurra21ab1bb4343c
diff --git a/crates/rpc/src/proto.rs b/crates/rpc/src/proto.rsindex 385caf3565f..f833db514dd 100644--- a/crates/rpc/src/proto.rs+++ b/crates/rpc/src/proto.rs@@ -6,7 +6,6 @@ use prost::Message as _;use serde::Serialize;use std::any::{Any, TypeId};use std::fmt;-use std::str::FromStr;use std::{cmp,fmt::Debug,@@ -119,23 +118,6 @@ impl fmt::Display for PeerId {}}-impl FromStr for PeerId {- type Err = anyhow::Error;-- fn from_str(s: &str) -> Result<Self, Self::Err> {- let mut components = s.split('/');- let owner_id = components- .next()- .ok_or_else(|| anyhow!("invalid peer id {:?}", s))?- .parse()?;- let id = components- .next()- .ok_or_else(|| anyhow!("invalid peer id {:?}", s))?- .parse()?;- Ok(PeerId { owner_id, id })- }-}-messages!((Ack, Foreground),(AddProjectCollaborator, Foreground),