only one place to 'calculate' the name
This commit is contained in:
@@ -9,6 +9,12 @@ pub struct Client {
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl PartialEq for Client {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.uuid == other.uuid
|
||||
}
|
||||
}
|
||||
|
||||
impl Client {
|
||||
pub(crate) fn get_display_name(&self) -> String {
|
||||
match &self.name {
|
||||
|
Reference in New Issue
Block a user