mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
Merge pull request #426 from teloxide/clippy_f
Suppress clippy false positive
This commit is contained in:
commit
7ccf460054
2 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,8 @@ where
|
|||
.await?;
|
||||
|
||||
if let redis::Value::Bulk(values) = deleted_rows_count {
|
||||
// False positive
|
||||
#[allow(clippy::collapsible_match)]
|
||||
if let redis::Value::Int(deleted_rows_count) = values[0] {
|
||||
match deleted_rows_count {
|
||||
0 => return Err(RedisStorageError::DialogueNotFound),
|
||||
|
|
|
@ -311,6 +311,8 @@ where
|
|||
tokio::pin!(stream);
|
||||
|
||||
loop {
|
||||
// False positive
|
||||
#[allow(clippy::collapsible_match)]
|
||||
if let Ok(upd) = timeout(shutdown_check_timeout, stream.next()).await {
|
||||
match upd {
|
||||
None => break,
|
||||
|
|
Loading…
Reference in a new issue