Skip to content

Commit

Permalink
Implement Hash for LineColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 16, 2023
1 parent 92a0295 commit d4c564b
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 d4c564b

Please sign in to comment.