From 2050717d0f5150ad64c0da32fd8b7963d6662de4 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Tue, 4 Jun 2019 16:11:04 +0900 Subject: [PATCH 1/2] Use `String::as_str()` instead of `::as_ref()` Fixes a regression. See . --- src/dom/v7400/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/v7400/object.rs b/src/dom/v7400/object.rs index 3eb2e1d..be314fc 100644 --- a/src/dom/v7400/object.rs +++ b/src/dom/v7400/object.rs @@ -90,7 +90,7 @@ impl ObjectMeta { // Get subclass. let subclass = match attrs.get(2) { - Some(DirectAttributeValue::String(v)) => strings.get_or_intern(v.as_ref()), + Some(DirectAttributeValue::String(v)) => strings.get_or_intern(v.as_str()), Some(_) => return Err(AccessError::UnexpectedAttributeType(Some(2))), None => return Err(AccessError::AttributeNotFound(Some(2))), }; From 4ac1bdf04d8a034f5a8536d515ec59e1ee570012 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Tue, 4 Jun 2019 16:18:43 +0900 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c04883a..6aa96c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +* Fix regression due to . + +### Fixes (non-breaking) +* Fix regression due to . + + This fix does not change the program's behaviour. + ## [0.2.0] * Syntactic position information for pull parser is supported.