Skip to content

Commit 97a9fa7

Browse files
Treehugger Robotandroid-build-merge-worker-robot
authored andcommitted
Merge "binder: fix PartialEq impl of SpIBinder" into main am: d955e73
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3253014 Change-Id: I6e938ab936f515d7afb3a4963694faa2fba234fc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents eb5f59f + d955e73 commit 97a9fa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/binder/rust/src/proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl PartialOrd for SpIBinder {
195195

196196
impl PartialEq for SpIBinder {
197197
fn eq(&self, other: &Self) -> bool {
198-
ptr::eq(self.0.as_ptr(), other.0.as_ptr())
198+
self.cmp(other) == Ordering::Equal
199199
}
200200
}
201201

0 commit comments

Comments
 (0)