Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d08373d7 authored by Frederick Mayle's avatar Frederick Mayle
Browse files

binder: fix PartialEq impl of SpIBinder

It was inconsistent with the definition of PartialOrd, which uses
`AIBinder_lt/gt` and has different behavior.

Test: m
Change-Id: I67e779a070c7b742be7c91ce52e43253f72d8db4
parent 351a8df9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
    }
}