Compare tokens in BotWrapper::eq

This commit is contained in:
Temirkhan Myrzamadi 2020-01-25 00:59:49 +06:00
parent e17a4cedd0
commit 47bbd9675e

View file

@ -9,8 +9,8 @@ use std::ops::Deref;
pub struct BotWrapper<'a>(pub &'a Bot);
impl PartialEq for BotWrapper<'_> {
fn eq(&self, _: &BotWrapper<'_>) -> bool {
true
fn eq(&self, other: &BotWrapper<'_>) -> bool {
self.0.token() == other.0.token()
}
}