clippy all codes (#1214)

1. clippy code
2. add fmt and clippy check in ci
This commit is contained in:
Sijie.Sun
2025-08-10 22:56:41 +08:00
committed by GitHub
parent 0087ac3ffc
commit e43537939a
144 changed files with 1475 additions and 1531 deletions
+8 -4
View File
@@ -233,8 +233,10 @@ async fn rpc_tunnel_stuck_test() {
let out =
client.scoped_client::<GreetingClientFactory<RpcController>>(1, 1, "test".to_string());
tasks.spawn(async move {
let mut ctrl = RpcController::default();
ctrl.timeout_ms = 1000;
let ctrl = RpcController {
timeout_ms: 1000,
..Default::default()
};
let input = SayHelloRequest {
name: "world".to_string(),
@@ -263,8 +265,10 @@ async fn rpc_tunnel_stuck_test() {
let out =
client.scoped_client::<GreetingClientFactory<RpcController>>(1, 1, "test".to_string());
let mut ctrl = RpcController::default();
ctrl.timeout_ms = 1000;
let ctrl = RpcController {
timeout_ms: 1000,
..Default::default()
};
let input = SayHelloRequest {
name: "fuck world".to_string(),
};