Skip to content

Commit

Permalink
Remove unnecessary clone (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
chienguo authored Aug 3, 2023
1 parent 573283f commit c4daf72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn key_value_get_set() {
async fn receive_message_subscribed_channel() {
let (addr, _) = start_server().await;

let client = Client::connect(addr.clone()).await.unwrap();
let client = Client::connect(addr).await.unwrap();
let mut subscriber = client.subscribe(vec!["hello".into()]).await.unwrap();

tokio::spawn(async move {
Expand All @@ -63,7 +63,7 @@ async fn receive_message_subscribed_channel() {
async fn receive_message_multiple_subscribed_channels() {
let (addr, _) = start_server().await;

let client = Client::connect(addr.clone()).await.unwrap();
let client = Client::connect(addr).await.unwrap();
let mut subscriber = client
.subscribe(vec!["hello".into(), "world".into()])
.await
Expand Down Expand Up @@ -94,7 +94,7 @@ async fn receive_message_multiple_subscribed_channels() {
async fn unsubscribes_from_channels() {
let (addr, _) = start_server().await;

let client = Client::connect(addr.clone()).await.unwrap();
let client = Client::connect(addr).await.unwrap();
let mut subscriber = client
.subscribe(vec!["hello".into(), "world".into()])
.await
Expand Down

0 comments on commit c4daf72

Please sign in to comment.