Update str-concat

This commit is contained in:
dalance 2020-02-09 21:54:01 +09:00
parent 09fd5b2d35
commit de2cf60b42
3 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.6.0...Unreleased) - ReleaseDate ## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.6.0...Unreleased) - ReleaseDate
* [Changed] update str-concat
## [v0.6.0](https://github.com/dalance/sv-parser/compare/v0.5.0...v0.6.0) - 2020-01-24 ## [v0.6.0](https://github.com/dalance/sv-parser/compare/v0.5.0...v0.6.0) - 2020-01-24
* [Added] ignore_include option * [Added] ignore_include option

View File

@ -24,6 +24,6 @@ nom-greedyerror = "0.1.0"
nom-packrat = "0.3.0" nom-packrat = "0.3.0"
nom-recursive = {version = "0.1.1", features = ["tracer128"]} nom-recursive = {version = "0.1.1", features = ["tracer128"]}
nom-tracable = "0.4.1" nom-tracable = "0.4.1"
str-concat = "0.1.4" str-concat = "0.2.0"
sv-parser-macros = {version = "^0.6.0", path = "../sv-parser-macros"} sv-parser-macros = {version = "^0.6.0", path = "../sv-parser-macros"}
sv-parser-syntaxtree = {version = "^0.6.0", path = "../sv-parser-syntaxtree"} sv-parser-syntaxtree = {version = "^0.6.0", path = "../sv-parser-syntaxtree"}

View File

@ -435,7 +435,7 @@ pub(crate) fn current_version() -> Option<VersionSpecifier> {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
pub(crate) fn concat<'a>(a: Span<'a>, b: Span<'a>) -> Option<Span<'a>> { pub(crate) fn concat<'a>(a: Span<'a>, b: Span<'a>) -> Option<Span<'a>> {
let c = str_concat::concat(a.fragment, b.fragment); let c = unsafe { str_concat::concat(a.fragment, b.fragment) };
if let Ok(c) = c { if let Ok(c) = c {
Some(Span { Some(Span {
offset: a.offset, offset: a.offset,