Skip to content

Commit

Permalink
Merge pull request #20 from davidpdrsn/master
Browse files Browse the repository at this point in the history
Derive `Hash` for `Pos`
  • Loading branch information
tailhook committed May 2, 2019
2 parents a1fb575 + 3fba85d commit db069e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.rs
@@ -1,7 +1,7 @@
use std::fmt;

/// Original position of element in source code
#[derive(PartialOrd, Ord, PartialEq, Eq, Clone, Copy, Default)]
#[derive(PartialOrd, Ord, PartialEq, Eq, Clone, Copy, Default, Hash)]
pub struct Pos {
/// One-based line number
pub line: usize,
Expand Down

0 comments on commit db069e3

Please sign in to comment.