mirror of https://github.com/fafhrd91/actix-web
clippy
This commit is contained in:
parent
001ef47633
commit
3718037106
|
@ -74,7 +74,7 @@ impl Quoter {
|
||||||
|
|
||||||
while let Some((prev, ch)) = self.decode_next(&mut remaining) {
|
while let Some((prev, ch)) = self.decode_next(&mut remaining) {
|
||||||
// this ugly conditional achieves +50% perf in cases where this is a tight loop.
|
// 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.extend_from_slice(prev);
|
||||||
}
|
}
|
||||||
buf.push(ch);
|
buf.push(ch);
|
||||||
|
|
Loading…
Reference in New Issue