Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Feb 16, 2024
1 parent 71e7da4 commit 5dddc7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions omniqueue/src/backends/rabbitmq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl QueueBackend for RabbitMqBackend {
.await
.map_err(QueueError::generic)?;

Ok(producer(&conn, cfg.clone(), custom_encoders).await?)
producer(&conn, cfg.clone(), custom_encoders).await
}

async fn consuming_half(
Expand All @@ -131,7 +131,7 @@ impl QueueBackend for RabbitMqBackend {
.await
.map_err(QueueError::generic)?;

Ok(consumer(&conn, cfg.clone(), custom_decoders).await?)
consumer(&conn, cfg.clone(), custom_decoders).await
}
}

Expand Down
5 changes: 2 additions & 3 deletions omniqueue/src/backends/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,10 @@ impl QueueConsumer for SqsQueueConsumer {
.await
.map_err(QueueError::generic)?;

Ok(out
.messages()
out.messages()
.unwrap_or_default()
.iter()
.map(|message| -> Result<Delivery, QueueError> { Ok(self.wrap_message(message)) })
.collect::<Result<Vec<_>, _>>()?)
.collect::<Result<Vec<_>, _>>()
}
}

0 comments on commit 5dddc7a

Please sign in to comment.