fix over-fix
diff --git a/test/rs/src/bin/test_server.rs b/test/rs/src/bin/test_server.rs
index 38d4b61..ececc83 100644
--- a/test/rs/src/bin/test_server.rs
+++ b/test/rs/src/bin/test_server.rs
@@ -114,7 +114,7 @@
let test_processor = ThriftTestSyncProcessor::new(ThriftTestSyncHandlerImpl {});
- match server_type {
+ match &*server_type {
"simple" | "thread-pool" => {
if protocol == "multi" || protocol == "multic" {
let second_service_processor =
@@ -334,7 +334,7 @@
fn handle_test_exception(&self, arg: String) -> thrift::Result<()> {
info!("testException({})", arg);
- match arg {
+ match &*arg {
"Xception" => Err((Xception {
error_code: Some(1001),
message: Some(arg),
@@ -354,7 +354,7 @@
// else:
// do not throw anything and return Xtruct with string_thing = arg1
fn handle_test_multi_exception(&self, arg0: String, arg1: String) -> thrift::Result<Xtruct> {
- match arg0 {
+ match &*arg0 {
"Xception" => Err((Xception {
error_code: Some(1001),
message: Some("This is an Xception".to_owned()),