Skip to content

Commit

Permalink
Small changes for release
Browse files Browse the repository at this point in the history
  • Loading branch information
abbudao committed Oct 24, 2019
1 parent e42276d commit 1ff6da6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ serde = "1.0.101"
tempfile = "3.1.0"
tar = "0.4.26"
flate2 = "1.0"

[profile.release]
lto = true
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ fn download_exercise(lang: String, name: String) -> Result<(), CliError> {
);
let exercise: Exercise = reqwest::get(&request_uri)?.json()?;
let download_uri = exercise.compressed.replace("gs://", BUCKET_URI);
println!("{:?}", download_uri);
println!("Downloading exercise {}, for language {}...", name, lang);
let mut tar_file = download_tar(&download_uri)?;
tar_file.unpack("./")?;
println!("Success");
println!("Downloaded {}.", name);
Ok(())
}

Expand Down

0 comments on commit 1ff6da6

Please sign in to comment.