diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 27cf600d..7240d62f 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -291,11 +291,8 @@ fn main() -> Result<()> { Path::new(&url).file_name().unwrap().to_str().unwrap() )); let response = download(&url)?; - let etag = response - .header("etag") - .expect("binary should have an etag") - .to_string() - .replace('\"', ""); + let etag = + response.header("etag").expect("binary should have an etag").replace('\"', ""); if let Some(ManifestRef::Real(ref manifest)) = existing_manifest { if let Some(entry) = manifest.download_info.get(&platform) {