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.

collab: Remove unused `From` impl for `User` model to `proto::User` (#56548)

Marshall Bowers6e8eaab25b5a
diff --git a/crates/collab/src/db/tables/user.rs b/crates/collab/src/db/tables/user.rs
index c797fe41509..b50f5aee38f 100644
--- a/crates/collab/src/db/tables/user.rs
+++ b/crates/collab/src/db/tables/user.rs
@@ -1,6 +1,5 @@
use crate::db::UserId;
use chrono::NaiveDateTime;
-use rpc::proto;
use sea_orm::entity::prelude::*;
use serde::Serialize;
@@ -33,20 +32,6 @@ impl From<Model> for crate::entities::User {
}
}
-impl From<Model> for proto::User {
- fn from(user: Model) -> Self {
- Self {
- id: user.id.to_proto(),
- avatar_url: format!(
- "https://avatars.githubusercontent.com/u/{}?s=128&v=4",
- user.github_user_id
- ),
- github_login: user.github_login,
- name: user.name,
- }
- }
-}
-
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(has_one = "super::room_participant::Entity")]