Apply clippy suggestions

This commit is contained in:
B. Blechschmidt 2023-06-30 21:21:40 +02:00
parent e6b1e93cd0
commit 1dc827e84c

View file

@ -245,7 +245,7 @@ impl HttpConnection {
// [RFC-9112](https://datatracker.ietf.org/doc/html/rfc9112#body.content-length)
// Transfer-Encoding isn't supported yet
if let Some(_) = headers_map.get(&UniCase::new(TRANSFER_ENCODING)) {
if headers_map.get(&UniCase::new(TRANSFER_ENCODING)).is_some() {
unimplemented!("Header Transfer-Encoding not supported");
}