mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
clippy: using '.clone()' on a ref-counted pointer
This commit is contained in:
@@ -100,7 +100,7 @@ impl publisher::FutureService for Publisher {
|
||||
type SubscribeFut = Box<Future<Item = (), Error = Message>>;
|
||||
|
||||
fn subscribe(&self, id: u32, address: SocketAddr) -> Self::SubscribeFut {
|
||||
let clients = self.clients.clone();
|
||||
let clients = Rc::clone(&self.clients);
|
||||
Box::new(
|
||||
subscriber::FutureClient::connect(address, client::Options::default())
|
||||
.map(move |subscriber| {
|
||||
|
||||
Reference in New Issue
Block a user