mirror of
https://github.com/teloxide/teloxide.git
synced 2024-10-24 09:57:18 +02:00
Suppress clippy false positive
This commit is contained in:
parent
f760181b81
commit
a2bfdf850a
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