diff options
author | Yuxuan 'fishy' Wang <yuxuan.wang@reddit.com> | 2022-01-27 13:17:37 -0800 |
---|---|---|
committer | Jens Geyer <Jens-G@users.noreply.github.com> | 2022-01-29 18:50:01 +0100 |
commit | eadbd9cd3634260cd7f54e74ea7af37826e3135b (patch) | |
tree | e93b7bc2c1764c26879316f372bc78e5e1a07195 /lib | |
parent | c4f2ba11738e3f48b36a32359965dc08cc5c5d7d (diff) | |
download | thrift-eadbd9cd3634260cd7f54e74ea7af37826e3135b.tar.gz |
Fix travis issue caused by 5f16344311
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rs/src/protocol/binary.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rs/src/protocol/binary.rs b/lib/rs/src/protocol/binary.rs index efee8c11b..9f8af430b 100644 --- a/lib/rs/src/protocol/binary.rs +++ b/lib/rs/src/protocol/binary.rs @@ -84,7 +84,7 @@ where // the thrift version header is intentionally negative // so the first check we'll do is see if the sign bit is set // and if so - assume it's the protocol-version header - if ((first_bytes[0] & 0x80) != 0) { + if (first_bytes[0] & 0x80) != 0 { // apparently we got a protocol-version header - check // it, and if it matches, read the rest of the fields if first_bytes[0..2] != [0x80, 0x01] { |