summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-09-04 22:13:29 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-09-04 22:13:29 +0000
commitd955e73f727c4c1e40dc96d97ae94f0bc3d35f85 (patch)
tree52cf71da298269c60fab9a9c2f611d32244b1f4d
parenta5744474478c94c1cb0e60343a4b560f266e0430 (diff)
parentd08373d70b98462acf4641862305d67b2491806c (diff)
Merge "binder: fix PartialEq impl of SpIBinder" into main
-rw-r--r--libs/binder/rust/src/proxy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/rust/src/proxy.rs b/libs/binder/rust/src/proxy.rs
index 340014aeaa..04f1517556 100644
--- a/libs/binder/rust/src/proxy.rs
+++ b/libs/binder/rust/src/proxy.rs
@@ -195,7 +195,7 @@ impl PartialOrd for SpIBinder {
impl PartialEq for SpIBinder {
fn eq(&self, other: &Self) -> bool {
- ptr::eq(self.0.as_ptr(), other.0.as_ptr())
+ self.cmp(other) == Ordering::Equal
}
}