Rust 1.85 (#25272)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
co-authored by
Anthony Eid
parent
fc52b43159
commit
e4e758db3a
@@ -104,8 +104,8 @@ impl PartialOrd for PointUtf16 {
|
||||
impl Ord for PointUtf16 {
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
fn cmp(&self, other: &PointUtf16) -> Ordering {
|
||||
let a = (self.row as usize) << 32 | self.column as usize;
|
||||
let b = (other.row as usize) << 32 | other.column as usize;
|
||||
let a = ((self.row as usize) << 32) | self.column as usize;
|
||||
let b = ((other.row as usize) << 32) | other.column as usize;
|
||||
a.cmp(&b)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user