Merge pull request #465 from teloxide/0-5-3_version_bump

Version bump: `0.5.2` -> `0.5.3`
This commit is contained in:
Waffle Maybe 2021-10-25 16:26:43 +03:00 committed by GitHub
commit 3e0c8e5fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 10 deletions

View file

@ -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))

View file

@ -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"

View file

@ -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;