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

allengeorge pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 0cc0650  Remove redundant `format!(..)` macro calls (#2443)
0cc0650 is described below

commit 0cc06506b807a2d7fa5183a207e1ce3f9727cf00
Author: xiexiaoqun <[email protected]>
AuthorDate: Thu Sep 9 10:43:00 2021 +0800

    Remove redundant `format!(..)` macro calls (#2443)
    
    Client: rs
---
 lib/rs/src/protocol/compact.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/rs/src/protocol/compact.rs b/lib/rs/src/protocol/compact.rs
index e08a30b..0fefca0 100644
--- a/lib/rs/src/protocol/compact.rs
+++ b/lib/rs/src/protocol/compact.rs
@@ -638,10 +638,10 @@ fn type_to_u8(field_type: TType) -> u8 {
         TType::Set => 0x0A,
         TType::Map => 0x0B,
         TType::Struct => 0x0C,
-        _ => panic!(format!(
+        _ => panic!(
             "should not have attempted to convert {} to u8",
             field_type
-        )),
+        ),
     }
 }
 

Reply via email to