feat(span): make span end optional

This commit is contained in:
Kat Marchán 2021-08-03 12:52:40 -07:00
parent f8cf66cd90
commit 1cb0ad3852
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
2 changed files with 3 additions and 7 deletions

View File

@ -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>,
}
/**

View File

@ -64,11 +64,7 @@ fn fancy() -> io::Result<()> {
column: 0,
offset: 0,
},
end: SourceLocation {
line: 0,
column: 4,
offset: 4,
},
end: None,
},
}],
};