1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

Fix clippy warning (#755)

This commit is contained in:
nasa
2019-04-05 18:34:24 +09:00
committed by Douman
parent 309c480782
commit a655bdac52
5 changed files with 6 additions and 6 deletions

View File

@ -414,7 +414,7 @@ impl ClientRequest {
}
// user agent
if !self.head.headers.contains_key(&header::USER_AGENT) {
if !self.head.headers.contains_key(header::USER_AGENT) {
self.head.headers.insert(
header::USER_AGENT,
HeaderValue::from_static(concat!("awc/", env!("CARGO_PKG_VERSION"))),