Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ pub fn install_from_url(
let server_etag = match download_result {
Ok(last_updated) => last_updated,
Err(e) => {
std::fs::remove_dir_all(temp_dir.into_path())?;
std::fs::remove_dir_all(temp_dir.path())?;
Comment thread
IanButterworth marked this conversation as resolved.
bail!("Failed to download and extract pr or nightly: {}", e);
}
};
Expand Down Expand Up @@ -619,7 +619,7 @@ pub fn install_from_url(
if target_path.exists() {
std::fs::remove_dir_all(&target_path)?;
}
std::fs::rename(temp_dir.into_path(), &target_path)?;
std::fs::rename(temp_dir.path(), &target_path)?;
Comment thread
MilesCranmer marked this conversation as resolved.

Ok(JuliaupConfigChannel::DirectDownloadChannel {
path: path.to_string_lossy().into_owned(),
Expand Down
Loading