fix more lint
diff --git a/test/rs/src/bin/test_server.rs b/test/rs/src/bin/test_server.rs
index 3e622d5..38d4b61 100644
--- a/test/rs/src/bin/test_server.rs
+++ b/test/rs/src/bin/test_server.rs
@@ -81,7 +81,7 @@
let (i_transport_factory, o_transport_factory): (
Box<dyn TReadTransportFactory>,
Box<dyn TWriteTransportFactory>,
- ) = match &*transport {
+ ) = match transport {
"buffered" => (
Box::new(TBufferedReadTransportFactory::new()),
Box::new(TBufferedWriteTransportFactory::new()),
@@ -98,7 +98,7 @@
let (i_protocol_factory, o_protocol_factory): (
Box<dyn TInputProtocolFactory>,
Box<dyn TOutputProtocolFactory>,
- ) = match &*protocol {
+ ) = match protocol {
"binary" | "multi" | "multi:binary" => (
Box::new(TBinaryInputProtocolFactory::new()),
Box::new(TBinaryOutputProtocolFactory::new()),
@@ -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()),