Skip to content

Commit 361c204

Browse files
tclemCopilot
andcommitted
Fix rustfmt formatting in test.rs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ed0d170 commit 361c204

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/twirp/src/test.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,29 @@ pub struct RequestId(pub String);
108108
// Small test twirp services (this would usually be generated with twirp-build)
109109
#[async_trait]
110110
pub trait TestApiClient {
111-
async fn ping(&self, req: http::Request<PingRequest>) -> Result<http::Response<PingResponse>, ClientError>;
112-
async fn boom(&self, req: http::Request<PingRequest>) -> Result<http::Response<PingResponse>, ClientError>;
111+
async fn ping(
112+
&self,
113+
req: http::Request<PingRequest>,
114+
) -> Result<http::Response<PingResponse>, ClientError>;
115+
async fn boom(
116+
&self,
117+
req: http::Request<PingRequest>,
118+
) -> Result<http::Response<PingResponse>, ClientError>;
113119
}
114120

115121
#[async_trait]
116122
impl TestApiClient for Client {
117-
async fn ping(&self, req: http::Request<PingRequest>) -> Result<http::Response<PingResponse>, ClientError> {
123+
async fn ping(
124+
&self,
125+
req: http::Request<PingRequest>,
126+
) -> Result<http::Response<PingResponse>, ClientError> {
118127
self.request("test.TestAPI/Ping", req).await
119128
}
120129

121-
async fn boom(&self, _req: http::Request<PingRequest>) -> Result<http::Response<PingResponse>, ClientError> {
130+
async fn boom(
131+
&self,
132+
_req: http::Request<PingRequest>,
133+
) -> Result<http::Response<PingResponse>, ClientError> {
122134
todo!()
123135
}
124136
}

0 commit comments

Comments
 (0)