summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen George <allengeorge@apache.org>2021-10-14 22:25:07 -0400
committerJens Geyer <Jens-G@users.noreply.github.com>2021-10-15 20:33:25 +0200
commit2b691ee3bf6d70112e1e06f29e8e8a06e3105f33 (patch)
tree50b68af85a5272392ade8dcac8d6ad289d809867
parent353e810199ab1d5cbad74fb44ce033b935e14d60 (diff)
downloadthrift-2b691ee3bf6d70112e1e06f29e8e8a06e3105f33.tar.gz
Fix Rust formatting error
Client: rs
-rw-r--r--lib/rs/src/protocol/compact.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rs/src/protocol/compact.rs b/lib/rs/src/protocol/compact.rs
index 0fefca0ac..566f344cf 100644
--- a/lib/rs/src/protocol/compact.rs
+++ b/lib/rs/src/protocol/compact.rs
@@ -638,10 +638,7 @@ fn type_to_u8(field_type: TType) -> u8 {
TType::Set => 0x0A,
TType::Map => 0x0B,
TType::Struct => 0x0C,
- _ => panic!(
- "should not have attempted to convert {} to u8",
- field_type
- ),
+ _ => panic!("should not have attempted to convert {} to u8", field_type),
}
}