fix clippy issue (#367)

This commit is contained in:
bmc-msft
2020-12-04 15:04:29 -05:00
committed by GitHub
parent f1b4efc5ff
commit 69fc9f508b

View File

@ -104,7 +104,7 @@ impl Config {
let etag = response
.headers()
.get(reqwest::header::ETAG)
.ok_or_else(|| ProxyError::EtagError)?
.ok_or(ProxyError::EtagError)?
.to_str()?
.to_owned();
let data: ConfigData = response.json().await?;