Skip to content

Commit

Permalink
Remove superfluous clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Mar 8, 2018
1 parent ac50501 commit 224ca41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl Transport for HttpHandle {
}

fn send(&self, json_data: Vec<u8>) -> Self::Future {
let request = self.create_request(json_data.clone());
let request = self.create_request(json_data);
let (response_tx, response_rx) = oneshot::channel();
let future = future::result(self.request_tx.unbounded_send((request, response_tx)))
.map_err(|e| {
Expand Down

0 comments on commit 224ca41

Please sign in to comment.