From b9b46aab5bbd26e80b14d14d3ccd353b2a540095 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 15 Dec 2022 21:55:16 +0100 Subject: [PATCH] common/rust: make SectionRange Ord+Hash --- common/rust/src/section_range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rust/src/section_range.rs b/common/rust/src/section_range.rs index 57293d9..56d7739 100644 --- a/common/rust/src/section_range.rs +++ b/common/rust/src/section_range.rs @@ -35,7 +35,7 @@ impl fmt::Display for InvalidSectionString { impl Error for InvalidSectionString {} /// A range of sections. Always contains at least one element. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SectionRange { start: T, end: T,