mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Compare tokens in BotWrapper::eq
This commit is contained in:
parent
e17a4cedd0
commit
47bbd9675e
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue