Skip to content

Commit 77451ca

Browse files
authored
Merge pull request #69 from mystor/span-eq
Add PartialEq and Eq implementations for Span
2 parents 1856584 + 9973798 commit 77451ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub struct LineColumn {
153153
pub column: usize,
154154
}
155155

156-
#[derive(Copy, Clone)]
156+
#[derive(Copy, Clone, PartialEq, Eq)]
157157
pub struct Span(imp::Span);
158158

159159
impl Span {

src/stable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Codemap {
311311
}
312312
}
313313

314-
#[derive(Clone, Copy, Debug)]
314+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
315315
pub struct Span {
316316
#[cfg(procmacro2_semver_exempt)]
317317
lo: u32,

src/unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub struct LineColumn {
212212
pub column: usize,
213213
}
214214

215-
#[derive(Copy, Clone)]
215+
#[derive(Copy, Clone, PartialEq, Eq)]
216216
pub struct Span(proc_macro::Span);
217217

218218
impl From<proc_macro::Span> for ::Span {

0 commit comments

Comments
 (0)