refactor: a const item with interior mutability should not be borrowed

This commit is contained in:
k-nasa 2019-04-05 12:15:08 +09:00
parent dd437a6bab
commit ee12b241b3
1 changed files with 1 additions and 1 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"))),