mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Merge pull request #465 from teloxide/0-5-3_version_bump
Version bump: `0.5.2` -> `0.5.3`
This commit is contained in:
commit
3e0c8e5fe7
3 changed files with 12 additions and 10 deletions
|
@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [unreleased]
|
||||
|
||||
## 0.5.2 - 2021-10-25
|
||||
|
||||
### Fixed
|
||||
|
||||
- Compilation when the `ctrlc_handler` feature is disabled ([issue 462](https://github.com/teloxide/teloxide/issues/462))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "teloxide"
|
||||
version = "0.5.2"
|
||||
version = "0.5.3"
|
||||
edition = "2018"
|
||||
description = "An elegant Telegram bots framework for Rust"
|
||||
repository = "https://github.com/teloxide/teloxide"
|
||||
|
|
|
@ -156,15 +156,17 @@ where
|
|||
match this.senders.pin().get(&chat_id) {
|
||||
// An old dialogue
|
||||
Some(tx) => {
|
||||
if tx.send(cx).is_err() {
|
||||
panic!("We are not dropping a receiver or call .close() on it",);
|
||||
}
|
||||
assert!(
|
||||
tx.send(cx).is_ok(),
|
||||
"We are not dropping a receiver or call .close() on it"
|
||||
);
|
||||
}
|
||||
None => {
|
||||
let tx = this.new_tx();
|
||||
if tx.send(cx).is_err() {
|
||||
panic!("We are not dropping a receiver or call .close() on it",);
|
||||
}
|
||||
assert!(
|
||||
tx.send(cx).is_ok(),
|
||||
"We are not dropping a receiver or call .close() on it"
|
||||
);
|
||||
this.senders.pin().insert(chat_id, tx);
|
||||
}
|
||||
}
|
||||
|
@ -271,9 +273,7 @@ mod tests {
|
|||
let tx = tx.clone();
|
||||
|
||||
async move {
|
||||
if tx.send(update).is_err() {
|
||||
panic!("tx.send(update) failed");
|
||||
}
|
||||
assert!(tx.send(update).is_ok(), "tx.send(update) failed");
|
||||
}
|
||||
})
|
||||
.await;
|
||||
|
|
Loading…
Add table
Reference in a new issue