Skip to content

Commit

Permalink
feat(span): make span end optional
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 3, 2021
1 parent f8cf66c commit 1cb0ad3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ pub struct SourceSpan {
pub label: String,
/// The start of the span.
pub start: SourceLocation,
/// The end of the span.
pub end: SourceLocation,
/// The end of the span. Optional
pub end: Option<SourceLocation>,
}

/**
Expand Down
6 changes: 1 addition & 5 deletions tests/reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ fn fancy() -> io::Result<()> {
column: 0,
offset: 0,
},
end: SourceLocation {
line: 0,
column: 4,
offset: 4,
},
end: None,
},
}],
};
Expand Down

0 comments on commit 1cb0ad3

Please sign in to comment.