Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhuw committed Dec 12, 2024
1 parent 8003c86 commit 3dd4d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ pub mod tests {

#[async_trait]
impl ByteLogSubscriber for TestLogSubscriber {
async fn read(&mut self) -> Result<(LogPosition, &[u8])> {
async fn read<'a>(&'a mut self) -> Result<(LogPosition, &'a [u8])> {
let mut receiver = self.log.len.subscribe();
receiver.wait_for(|l| *l > self.offset).await.unwrap();
let position = self.offset;
Expand Down

0 comments on commit 3dd4d4e

Please sign in to comment.