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
@@ -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?;