From d4c564b836dd383ccfdebd905f2c7ab014dd7820 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 16 Jan 2023 11:31:13 -0800 Subject: [PATCH] Implement Hash for LineColumn --- src/location.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/location.rs b/src/location.rs index 0a123910..463026c2 100644 --- a/src/location.rs +++ b/src/location.rs @@ -4,7 +4,7 @@ use core::cmp::Ordering; /// /// This type is semver exempt and not exposed by default. #[cfg_attr(doc_cfg, doc(cfg(feature = "span-locations")))] -#[derive(Copy, Clone, Debug, PartialEq, Eq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] pub struct LineColumn { /// The 1-indexed line in the source file on which the span starts or ends /// (inclusive).