codegen: Tweak log message

This commit is contained in:
Taiki Endo
2023-01-27 23:48:46 +09:00
parent d5486e05e3
commit 979f068989

View File

@@ -189,13 +189,13 @@ fn main() -> Result<()> {
} }
}; };
eprintln!("downloading {url} for checksum"); eprintln!("downloading {url} for checksum...");
let download_cache = download_cache_dir.join(format!( let download_cache = download_cache_dir.join(format!(
"{version}-{platform:?}-{}", "{version}-{platform:?}-{}",
Path::new(&url).file_name().unwrap().to_str().unwrap() Path::new(&url).file_name().unwrap().to_str().unwrap()
)); ));
if download_cache.is_file() { if download_cache.is_file() {
eprintln!("{url} is already downloaded"); eprintln!(" already downloaded");
fs::File::open(download_cache)?.read_to_end(&mut buf)?; fs::File::open(download_cache)?.read_to_end(&mut buf)?;
} else { } else {
download(&url)?.into_reader().read_to_end(&mut buf)?; download(&url)?.into_reader().read_to_end(&mut buf)?;