Skip to content

Commit

Permalink
Merge pull request #7 from letmutx/impl_unixconnector_clone
Browse files Browse the repository at this point in the history
Implement clone for UnixConnector
  • Loading branch information
softprops authored Oct 8, 2017
2 parents 96cc0d0 + 1e2cb98 commit 8b2d21b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Hyper client bindings for unix domain sockets
use std::io;
use std::clone::Clone;

use futures::IntoFuture;
use futures::future::{self, FutureResult};
Expand Down Expand Up @@ -65,6 +66,12 @@ impl Service for UnixConnector {
}
}

impl Clone for UnixConnector {
fn clone(&self) -> Self {
UnixConnector(self.0.clone())
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 8b2d21b

Please sign in to comment.