aboutsummaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
commit706a3b4ac46edd3adc344ecb263cb5d2a4a057a3 (patch)
tree719d382e95256617df64d177cc5be0511dfe740a /src/client.rs
parent3b8bff634198c5ae17ab16d5c85c30b3201ae593 (diff)
downloadnetapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.tar.gz
netapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.zip
Formatting & clippy
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.rs b/src/client.rs
index e2d5d84..62f876b 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1,8 +1,8 @@
+use std::borrow::Borrow;
use std::collections::HashMap;
use std::net::SocketAddr;
use std::sync::atomic::{self, AtomicU32};
use std::sync::{Arc, Mutex};
-use std::borrow::Borrow;
use arc_swap::ArcSwapOption;
use log::{debug, error, trace};
@@ -120,10 +120,10 @@ impl ClientConn {
self.query_send.store(None);
}
- pub(crate) async fn call<'a, T, B>(
+ pub(crate) async fn call<T, B>(
self: Arc<Self>,
rq: B,
- path: &'a str,
+ path: &str,
prio: RequestPriority,
) -> Result<<T as Message>::Response, Error>
where