diff --git a/CHANGELOG.md b/CHANGELOG.md index d0417fa..abbf03d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [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 * [Added] ignore_include option diff --git a/sv-parser-parser/Cargo.toml b/sv-parser-parser/Cargo.toml index e6a9f2b..00e6dbc 100644 --- a/sv-parser-parser/Cargo.toml +++ b/sv-parser-parser/Cargo.toml @@ -24,6 +24,6 @@ nom-greedyerror = "0.1.0" nom-packrat = "0.3.0" nom-recursive = {version = "0.1.1", features = ["tracer128"]} 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-syntaxtree = {version = "^0.6.0", path = "../sv-parser-syntaxtree"} diff --git a/sv-parser-parser/src/utils.rs b/sv-parser-parser/src/utils.rs index 9221cfd..1710f33 100644 --- a/sv-parser-parser/src/utils.rs +++ b/sv-parser-parser/src/utils.rs @@ -435,7 +435,7 @@ pub(crate) fn current_version() -> Option { // ----------------------------------------------------------------------------- pub(crate) fn concat<'a>(a: Span<'a>, b: Span<'a>) -> Option> { - let c = str_concat::concat(a.fragment, b.fragment); + let c = unsafe { str_concat::concat(a.fragment, b.fragment) }; if let Ok(c) = c { Some(Span { offset: a.offset,