Add impl From<Vec<Span>> for MultiSpan
.
This commit is contained in:
parent
dee6d0f62e
commit
5d3626d0f2
@ -434,6 +434,12 @@ impl From<Span> for MultiSpan {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Vec<Span>> for MultiSpan {
|
||||
fn from(spans: Vec<Span>) -> MultiSpan {
|
||||
MultiSpan::from_spans(spans)
|
||||
}
|
||||
}
|
||||
|
||||
pub const NO_EXPANSION: SyntaxContext = SyntaxContext::empty();
|
||||
|
||||
/// Identifies an offset of a multi-byte character in a FileMap
|
||||
|
Loading…
Reference in New Issue
Block a user