From 45fd2948fbbc7cad0cca5ce57325fda13cbe375d Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Mon, 26 Jul 2021 19:18:41 -0700 Subject: Fix warnings in preparation for Rust 1.53.0 This CL fixes several new warnings generated by rustc 1.53.0. Bug: 194400612 Test: m rust Change-Id: I36c31082fa15848cc802d2b54cf63d8070f9d2f9 --- libs/binder/rust/src/parcel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/binder/rust/src/parcel.rs b/libs/binder/rust/src/parcel.rs index a3f7620474..a0e991c9fd 100644 --- a/libs/binder/rust/src/parcel.rs +++ b/libs/binder/rust/src/parcel.rs @@ -493,7 +493,7 @@ fn test_read_data() { assert_eq!(parcel.read::().unwrap(), 15); let start = parcel.get_data_position(); - assert_eq!(parcel.read::().unwrap(), true); + assert!(parcel.read::().unwrap()); unsafe { assert!(parcel.set_data_position(start).is_ok()); -- cgit v1.2.3-59-g8ed1b