chore: Update to 2021 edition (#1188)
This commit is contained in:
@@ -5,7 +5,7 @@ description = """
|
||||
Codegen module of `tonic` gRPC implementation.
|
||||
"""
|
||||
documentation = "https://docs.rs/tonic-build/0.8.4/tonic_build/"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
homepage = "https://github.com/hyperium/tonic"
|
||||
keywords = ["rpc", "grpc", "async", "codegen", "protobuf"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -150,7 +150,7 @@ fn generate_connect(service_ident: &syn::Ident, enabled: bool) -> TokenStream {
|
||||
/// Attempt to create a new client by connecting to a given endpoint.
|
||||
pub async 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 conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
|
||||
|
||||
Reference in New Issue
Block a user