From 437c7d993b7f4dbf86d28b38eafde52c6f866dfd Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 11 Aug 2021 22:07:35 +0100 Subject: [PATCH] clippy --- actix-http/src/h1/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/h1/decoder.rs b/actix-http/src/h1/decoder.rs index ecb8f6509..313ffd5e0 100644 --- a/actix-http/src/h1/decoder.rs +++ b/actix-http/src/h1/decoder.rs @@ -92,7 +92,7 @@ pub(crate) trait MessageType: Sized { } header::CONTENT_LENGTH => match value.to_str() { - Ok(s) if s.trim().starts_with("+") => { + Ok(s) if s.trim().starts_with('+') => { debug!("illegal Content-Length: {:?}", s); return Err(ParseError::Header); }