Skip to content

Commit

Permalink
fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shortishly committed Sep 18, 2024
1 parent 26f5e76 commit d318207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tansu-server/src/broker/delete_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where
pub async fn request(&self, topics: &[DeleteRecordsTopic]) -> Result<Body> {
let topics = self
.storage
.delete_records(&topics)
.delete_records(topics)
.await
.inspect_err(|err| debug!(?err, ?topics))
.map(Some)?;
Expand Down
2 changes: 1 addition & 1 deletion tansu-storage/src/pg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ impl Storage for Postgres {
debug!(?brokers);

let responses = match topics {
Some(topics) if topics.len() > 0 => {
Some(topics) if !topics.is_empty() => {
let mut responses = vec![];

for topic in topics {
Expand Down

0 comments on commit d318207

Please sign in to comment.