Suppress clippy false positive

This commit is contained in:
Waffle 2021-08-19 12:03:35 +03:00
parent f760181b81
commit a2bfdf850a
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,