Skip to content

Commit

Permalink
Clippy keeps getting better, and I of course happily comply!
Browse files Browse the repository at this point in the history
  • Loading branch information
detro committed Jan 7, 2024
1 parent 3e72508 commit 88b6da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/konsumer_offsets_data/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl KonsumerOffsetsDataEmitter {
) -> KafkaResult<()> {
// Fetch topic metadata
let meta = consumer.fetch_metadata(Some(topic), Duration::from_secs(5))?;
let topic_meta = meta.topics().get(0).ok_or(KafkaError::Subscription(format!(
let topic_meta = meta.topics().first().ok_or(KafkaError::Subscription(format!(
"Unable to (self)assign '{}' and seek to earliest offsets",
topic
)))?;
Expand Down
2 changes: 1 addition & 1 deletion src/lag_register/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use tokio::sync::mpsc::Receiver;
use crate::consumer_groups::ConsumerGroups;
use crate::partition_offsets::PartitionOffsetsRegister;

pub use register::{GroupWithLag, Lag, LagRegister, LagWithOwner};
pub use register::{Lag, LagRegister};

pub fn init(
cg_rx: Receiver<ConsumerGroups>,
Expand Down

0 comments on commit 88b6da8

Please sign in to comment.