You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2022/01/29 17:51:03 UTC

[thrift] branch master updated: Fix travis issue caused by 5f16344311

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

jensg 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 eadbd9c  Fix travis issue caused by 5f16344311
eadbd9c is described below

commit eadbd9cd3634260cd7f54e74ea7af37826e3135b
Author: Yuxuan 'fishy' Wang <yu...@reddit.com>
AuthorDate: Thu Jan 27 13:17:37 2022 -0800

    Fix travis issue caused by 5f16344311
---
 lib/rs/src/protocol/binary.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rs/src/protocol/binary.rs b/lib/rs/src/protocol/binary.rs
index efee8c1..9f8af43 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] {