Merge pull request #426 from teloxide/clippy_f

Suppress clippy false positive
This commit is contained in:
Hirrolot 2021-08-19 06:38:53 -07:00 committed by GitHub
commit 7ccf460054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

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

View file

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