Remove trivial cast in guaranteed_eq

I found this while accidentally breaking trivial casts in another
branch.
This commit is contained in:
Nilstrieb 2023-10-15 12:33:44 +02:00
parent ff5664d600
commit fe9d422e7b

View File

@ -842,7 +842,7 @@ impl<T: ?Sized> *const T {
where
T: Sized,
{
match intrinsics::ptr_guaranteed_cmp(self as _, other as _) {
match intrinsics::ptr_guaranteed_cmp(self, other) {
2 => None,
other => Some(other == 1),
}