We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b61c9 commit b47a10eCopy full SHA for b47a10e
src/main.rs
@@ -275,13 +275,13 @@ impl Context {
275
for e in self.dl_dir().read_dir()? {
276
let e = e?;
277
let filename = e.file_name().into_string().unwrap();
278
- if !filename.starts_with("rustc-") || !filename.ends_with(".tar.gz") {
+ if !filename.starts_with("rustc-") || !filename.ends_with(".tar.xz") {
279
continue;
280
}
281
println!("looking inside {} for a version", filename);
282
283
let file = File::open(e.path())?;
284
- let reader = flate2::read::GzDecoder::new(file);
+ let reader = xz2::read::XzDecoder::new(file);
285
let mut archive = tar::Archive::new(reader);
286
287
let mut version_file = None;
0 commit comments