diff --git a/bin/tx-prover/src/server/generated/api.rs b/bin/tx-prover/src/server/generated/api.rs index 082a941d1..9015ff32f 100644 --- a/bin/tx-prover/src/server/generated/api.rs +++ b/bin/tx-prover/src/server/generated/api.rs @@ -14,8 +14,7 @@ pub struct ProveTransactionResponse { /// Generated client implementations. pub mod api_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] - use tonic::codegen::*; - use tonic::codegen::http::Uri; + use tonic::codegen::{http::Uri, *}; #[derive(Debug, Clone)] pub struct ApiClient { inner: tonic::client::Grpc, @@ -46,10 +45,7 @@ pub mod api_client { let inner = tonic::client::Grpc::with_origin(inner, origin); Self { inner } } - pub fn with_interceptor( - inner: T, - interceptor: F, - ) -> ApiClient> + pub fn with_interceptor(inner: T, interceptor: F) -> ApiClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -59,9 +55,8 @@ pub mod api_client { >::ResponseBody, >, >, - , - >>::Error: Into + Send + Sync, + >>::Error: + Into + Send + Sync, { ApiClient::new(InterceptedService::new(inner, interceptor)) } @@ -99,19 +94,14 @@ pub mod api_client { pub async fn prove_transaction( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result< - tonic::Response, - tonic::Status, - > { - self.inner - .ready() - .await - .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result, tonic::Status> + { + self.inner.ready().await.map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/api.Api/ProveTransaction"); let mut req = request.into_request(); @@ -130,10 +120,7 @@ pub mod api_server { async fn prove_transaction( &self, request: tonic::Request, - ) -> std::result::Result< - tonic::Response, - tonic::Status, - >; + ) -> std::result::Result, tonic::Status>; } #[derive(Debug)] pub struct ApiServer { @@ -158,10 +145,7 @@ pub mod api_server { max_encoding_message_size: None, } } - pub fn with_interceptor( - inner: T, - interceptor: F, - ) -> InterceptedService + pub fn with_interceptor(inner: T, interceptor: F) -> InterceptedService where F: tonic::service::Interceptor, { @@ -217,23 +201,18 @@ pub mod api_server { "/api.Api/ProveTransaction" => { #[allow(non_camel_case_types)] struct ProveTransactionSvc(pub Arc); - impl< - T: Api, - > tonic::server::UnaryService - for ProveTransactionSvc { + impl tonic::server::UnaryService + for ProveTransactionSvc + { type Response = super::ProveTransactionResponse; - type Future = BoxFuture< - tonic::Response, - tonic::Status, - >; + type Future = BoxFuture, tonic::Status>; fn call( &mut self, request: tonic::Request, ) -> Self::Future { let inner = Arc::clone(&self.0); - let fut = async move { - ::prove_transaction(&inner, request).await - }; + let fut = + async move { ::prove_transaction(&inner, request).await }; Box::pin(fut) } } @@ -259,19 +238,15 @@ pub mod api_server { Ok(res) }; Box::pin(fut) - } - _ => { - Box::pin(async move { - Ok( - http::Response::builder() - .status(200) - .header("grpc-status", "12") - .header("content-type", "application/grpc") - .body(empty_body()) - .unwrap(), - ) - }) - } + }, + _ => Box::pin(async move { + Ok(http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap()) + }), } } }