This is an automated email from the ASF dual-hosted git repository.

jiayuliu pushed a commit to branch use-rust-165
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/use-rust-165 by this push:
     new ccd908b58 fix match &*server_type {
ccd908b58 is described below

commit ccd908b588b9f5807ea3ac0b01b5506e0edf751f
Author: Jiayu Liu <[email protected]>
AuthorDate: Tue Nov 7 13:26:57 2023 +0800

    fix match &*server_type {
---
 test/rs/src/bin/test_server.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/rs/src/bin/test_server.rs b/test/rs/src/bin/test_server.rs
index ececc835f..aa8191cf9 100644
--- a/test/rs/src/bin/test_server.rs
+++ b/test/rs/src/bin/test_server.rs
@@ -114,7 +114,7 @@ fn run() -> thrift::Result<()> {
 
     let test_processor = 
ThriftTestSyncProcessor::new(ThriftTestSyncHandlerImpl {});
 
-    match &*server_type {
+    match server_type {
         "simple" | "thread-pool" => {
             if protocol == "multi" || protocol == "multic" {
                 let second_service_processor =

Reply via email to