Skip to content

Commit 2280076

Browse files
committed
Fix linter lifetime elision warnings
Signed-off-by: Tomasz Pietrek <[email protected]>
1 parent 16d7e87 commit 2280076

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

async-nats/src/connection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ impl Connection {
666666
this: &'a mut Connection,
667667
}
668668

669-
impl<'a> fmt::Write for Writer<'a> {
669+
impl fmt::Write for Writer<'_> {
670670
fn write_str(&mut self, s: &str) -> fmt::Result {
671671
self.this.write_buf_len += s.len();
672672
self.this.flattened_writes.write_str(s)

async-nats/src/jetstream/consumer/pull.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub struct Batch {
330330
terminated: bool,
331331
}
332332

333-
impl<'a> Batch {
333+
impl Batch {
334334
async fn batch(batch: BatchConfig, consumer: &Consumer<Config>) -> Result<Batch, BatchError> {
335335
let inbox = Subject::from(consumer.context.client.new_inbox());
336336
let subscription = consumer.context.client.subscribe(inbox.clone()).await?;

async-nats/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl ConnectionHandler {
475475
Closed,
476476
}
477477

478-
impl<'a> ProcessFut<'a> {
478+
impl ProcessFut<'_> {
479479
const RECV_CHUNK_SIZE: usize = 16;
480480

481481
#[cold]
@@ -497,7 +497,7 @@ impl ConnectionHandler {
497497
}
498498
}
499499

500-
impl<'a> Future for ProcessFut<'a> {
500+
impl Future for ProcessFut<'_> {
501501
type Output = ExitReason;
502502

503503
/// Drives the connection forward.

0 commit comments

Comments
 (0)