fix: remove unused implementations

This commit is contained in:
user0-07161 2025-10-07 18:28:02 +02:00
parent 8eed67ab69
commit 0c0e2b1cea

View file

@ -1,7 +1,5 @@
#![allow(dead_code)]
use std::borrow::Borrow;
#[derive(Clone, Debug, Hash, Eq, PartialEq, PartialOrd, Ord)]
pub struct User {
pub nickname: Option<String>,
@ -52,21 +50,3 @@ impl UserUnwrapped {
)
}
}
impl PartialEq<String> for UserUnwrapped {
fn eq(&self, other: &String) -> bool {
self.username == other.clone()
}
}
impl PartialEq<UserUnwrapped> for String {
fn eq(&self, other: &UserUnwrapped) -> bool {
self == &other.username.clone()
}
}
impl Borrow<String> for UserUnwrapped {
fn borrow(&self) -> &String {
&self.username
}
}