diff options
author | xiexiaoqun <xiexiaoqun@users.noreply.github.com> | 2021-09-09 10:43:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 22:43:00 -0400 |
commit | 0cc06506b807a2d7fa5183a207e1ce3f9727cf00 (patch) | |
tree | 1c8b3d6d39e144f9ff159db63921376926adaefe /lib/rs | |
parent | cdbcff99958c024d224de98a0dfc2e98d6d779b6 (diff) | |
download | thrift-0cc06506b807a2d7fa5183a207e1ce3f9727cf00.tar.gz |
Remove redundant `format!(..)` macro calls (#2443)
Client: rs
Diffstat (limited to 'lib/rs')
-rw-r--r-- | lib/rs/src/protocol/compact.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rs/src/protocol/compact.rs b/lib/rs/src/protocol/compact.rs index e08a30bd9..0fefca0ac 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 - )), + ), } } |