Merge pull request #2461 from tree-sitter/no-ord-on-range

Remove `PartialOrd, Ord` deriving from `Range` in Rust lib
This commit is contained in:
Andrew Hlynskyi 2023-08-02 19:35:29 +03:00 committed by GitHub
commit 73bb2c36fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ pub struct Point {
/// A range of positions in a multi-line text document, both in terms of bytes and of
/// rows and columns.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct Range {
pub start_byte: usize,
pub end_byte: usize,