Skip to content

Commit

Permalink
Merge pull request #362 from dtolnay/hashlinecolumn
Browse files Browse the repository at this point in the history
Implement Hash for LineColumn
  • Loading branch information
dtolnay authored Jan 16, 2023
2 parents 92a0295 + d4c564b commit f01da43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit f01da43

Please sign in to comment.