diff --git a/src/user.rs b/src/user.rs index 2e24e7b..583b7cb 100644 --- a/src/user.rs +++ b/src/user.rs @@ -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, @@ -52,21 +50,3 @@ impl UserUnwrapped { ) } } - -impl PartialEq for UserUnwrapped { - fn eq(&self, other: &String) -> bool { - self.username == other.clone() - } -} - -impl PartialEq for String { - fn eq(&self, other: &UserUnwrapped) -> bool { - self == &other.username.clone() - } -} - -impl Borrow for UserUnwrapped { - fn borrow(&self) -> &String { - &self.username - } -}