Skip to content

Commit 76e30b8

Browse files
AndrewmatildeAndrewmatilde
and
Andrewmatilde
authored
fix:unneeded return statement (#70)
Signed-off-by: Andrewmatilde <[email protected]> Co-authored-by: Andrewmatilde <[email protected]>
1 parent 333285a commit 76e30b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chaos-tproxy-proxy/src/uds_client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl UdsDataClient {
2828
) -> anyhow::Result<T> {
2929
tracing::debug!("try connect path : {:?}", &self.path);
3030
let mut stream = UnixStream::connect(self.path.clone()).await?;
31-
return match stream.read_to_end(buf).await {
31+
match stream.read_to_end(buf).await {
3232
Ok(_) => {
3333
tracing::debug!("Read data successfully.");
3434

@@ -47,6 +47,6 @@ impl UdsDataClient {
4747
tracing::debug!("Read data failed with err {:?}.", e);
4848
Err(anyhow::anyhow!("{}", e))
4949
}
50-
};
50+
}
5151
}
5252
}

0 commit comments

Comments
 (0)