in src/delimited.rs [125:138]
fn finish(&mut self) -> Result<bool> {
if !self.remainder.is_empty() {
if self.is_quote {
Err(Error::UnterminatedString)?;
}
if self.is_escape {
Err(Error::TrailingEscape)?;
}
self.complete
.push_back(Bytes::from(std::mem::take(&mut self.remainder)))
}
Ok(self.complete.is_empty())
}