Skip to content

Commit

Permalink
Update the rust-toolchian to nightly-2022-11-20
Browse files Browse the repository at this point in the history
Signed-off-by: Quanyi Ma <eli@patch.sh>
  • Loading branch information
genedna committed Nov 21, 2022
1 parent 34fd076 commit edf265c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = """
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.63"
anyhow = "1.0.66"
thiserror = "1.0.36"
clap = "4.0.26"
git2 = "0.15.0"
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2022-11-20
4 changes: 0 additions & 4 deletions src/crates/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ use std::{
path::{PathBuf},
};

use chrono::{Duration, NaiveDate, Utc};
use log::{error, info};

use threadpool::ThreadPool;
use walkdir::WalkDir;

use crate::{
config::RustUpConfig,
Expand Down
2 changes: 1 addition & 1 deletion src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::errors::{FreightResult, FreighterError};
pub fn download_file_with_sha(url: &str, file_folder: &Path, file_name: &str) -> FreightResult {
let sha_url = format!("{}{}", url, ".sha256");
let sha_name = format!("{}{}", file_name, ".sha256");
let sha_path = file_folder.join(&sha_name);
let sha_path = file_folder.join(sha_name);
//always update sha256 file
let res = download_file(&sha_url, &sha_path, None, true).unwrap();
if res {
Expand Down

0 comments on commit edf265c

Please sign in to comment.