Add impl From<Vec<Span>> for MultiSpan
.
This commit is contained in:
parent
dee6d0f62e
commit
5d3626d0f2
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
pub const NO_EXPANSION: SyntaxContext = SyntaxContext::empty();
|
||||||
|
|
||||||
/// Identifies an offset of a multi-byte character in a FileMap
|
/// Identifies an offset of a multi-byte character in a FileMap
|
||||||
|
|
Loading…
Reference in a new issue