This commit is contained in:
Ali MJ Al-Nasrawy 2022-03-28 22:17:00 +03:00
parent 001ef47633
commit 3718037106
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ impl Quoter {
while let Some((prev, ch)) = self.decode_next(&mut remaining) {
// this ugly conditional achieves +50% perf in cases where this is a tight loop.
if prev.len() != 0 {
if !prev.is_empty() {
buf.extend_from_slice(prev);
}
buf.push(ch);