THRIFT-5741: use rust 1.65 (#2870)
* use rust 1.65
* fix clippy
* fix alert
* fix protocol
* fix one more dereference
* fix more lint
* fix over-fix
* fix match &*server_type {
diff --git a/lib/rs/src/protocol/binary.rs b/lib/rs/src/protocol/binary.rs
index 5da8018..b4b51f6 100644
--- a/lib/rs/src/protocol/binary.rs
+++ b/lib/rs/src/protocol/binary.rs
@@ -59,7 +59,7 @@
pub transport: T, // FIXME: shouldn't be public
}
-impl<'a, T> TBinaryInputProtocol<T>
+impl<T> TBinaryInputProtocol<T>
where
T: TReadTransport,
{
@@ -861,7 +861,7 @@
set_readable_bytes!(i_prot, &[0x01]);
let read_bool = assert_success!(i_prot.read_bool());
- assert_eq!(read_bool, true);
+ assert!(read_bool);
}
#[test]
@@ -871,7 +871,7 @@
set_readable_bytes!(i_prot, &[0x00]);
let read_bool = assert_success!(i_prot.read_bool());
- assert_eq!(read_bool, false);
+ assert!(!read_bool);
}
#[test]
@@ -881,7 +881,7 @@
set_readable_bytes!(i_prot, &[0xAC]);
let read_bool = assert_success!(i_prot.read_bool());
- assert_eq!(read_bool, true);
+ assert!(read_bool);
}
#[test]