chore: fix clippy lints (#707)
This commit is contained in:
@@ -27,7 +27,7 @@ impl BlockingClient {
|
||||
let rt = Builder::new_multi_thread().enable_all().build().unwrap();
|
||||
let client = rt.block_on(GreeterClient::connect(dst))?;
|
||||
|
||||
Ok(Self { rt, client })
|
||||
Ok(Self { client, rt })
|
||||
}
|
||||
|
||||
pub fn say_hello(
|
||||
|
||||
@@ -4,7 +4,7 @@ use tonic::{Request, Response, Status};
|
||||
mod proto {
|
||||
tonic::include_proto!("helloworld");
|
||||
|
||||
pub(crate) const FILE_DESCRIPTOR_SET: &'static [u8] =
|
||||
pub(crate) const FILE_DESCRIPTOR_SET: &[u8] =
|
||||
tonic::include_file_descriptor_set!("helloworld_descriptor");
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ mod service {
|
||||
impl Service<Request<BoxBody>> for AuthSvc {
|
||||
type Response = Response<Body>;
|
||||
type Error = Box<dyn std::error::Error + Send + Sync>;
|
||||
#[allow(clippy::type_complexity)]
|
||||
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>;
|
||||
|
||||
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
|
||||
Reference in New Issue
Block a user