From 3718037106efba96031c92af61beafa29c6fba53 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Mon, 28 Mar 2022 22:17:00 +0300 Subject: [PATCH] clippy --- actix-router/src/quoter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-router/src/quoter.rs b/actix-router/src/quoter.rs index 625e3fd63..08a30f98b 100644 --- a/actix-router/src/quoter.rs +++ b/actix-router/src/quoter.rs @@ -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);