chore: Update to 2021 edition (#1188)

This commit is contained in:
tottoto
2022-12-13 15:16:49 -05:00
committed by GitHub
parent 25ea473abd
commit bf22a740c3
37 changed files with 29 additions and 52 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ struct BlockingClient {
impl BlockingClient {
pub fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let rt = Builder::new_multi_thread().enable_all().build().unwrap();
-1
View File
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use tonic::{
transport::{Endpoint, Server, Uri},
Request, Response, Status,
-1
View File
@@ -5,7 +5,6 @@ pub mod hello_world {
}
use hello_world::{greeter_client::GreeterClient, HelloRequest};
use std::convert::TryFrom;
#[cfg(unix)]
use tokio::net::UnixStream;
use tonic::transport::{Endpoint, Uri};