Skip to content

Commit 9d722e0

Browse files
committed
Fix clone clippy warning
1 parent 1f1a038 commit 9d722e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/producer/future_producer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ mod tests {
443443
#[test]
444444
fn test_future_producer_clone() {
445445
let producer = ClientConfig::new().create::<FutureProducer>().unwrap();
446+
#[allow(clippy::redundant_clone)]
446447
let _producer_clone = producer.clone();
447448
}
448449

@@ -453,6 +454,7 @@ mod tests {
453454
let producer = ClientConfig::new()
454455
.create_with_context::<_, FutureProducer<TestContext>>(test_context)
455456
.unwrap();
457+
#[allow(clippy::redundant_clone)]
456458
let _producer_clone = producer.clone();
457459
}
458460
}

0 commit comments

Comments
 (0)