diff options
Diffstat (limited to 'src/de/parse.rs')
-rw-r--r-- | src/de/parse.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de/parse.rs b/src/de/parse.rs index 3718c57..d1cd147 100644 --- a/src/de/parse.rs +++ b/src/de/parse.rs @@ -239,6 +239,8 @@ impl<'a> Parser<'a> { Cow::Borrowed(_) => { match replaced { Cow::Borrowed(_) => { + // In this case, neither method made replacements, so we + // reuse the original bytes let res = str::from_utf8(&self.inner[self.acc.0..self.acc.1 - 1])?; Ok(Cow::Borrowed(res)) }, |